stuffer.snap module

Package installation with snap commands.

Packages are installed with snap.Install.

class stuffer.snap.Install(package: Union[str, stuffer.content.DeferStr], classic: bool = False)[source]

Bases: stuffer.core.Action

Install a package with snap install.

package
Name of package. Standard snap install version constraints can be used, e.g. wget=1.17.1.
run() → None[source]

Run the Action command(s).

The default implementation runs the command returned by command().

str
The output of the command
subprocess.CalledProcessError
On execution failure.