Skip to main content

Command

Enum Command 

Source
pub enum Command {
Show 37 variants InternalStdinWatchdog { parent_pid: u32, }, Build { name: Option<String>, rebuild: bool, no_diff: bool, edit: bool, }, Enable { name: Option<String>, }, Disable { name: Option<String>, force: bool, }, Start { name: Option<String>, timeout: u64, edit: bool, }, Stop { name: Option<String>, }, Exec { root: bool, args: Vec<String>, }, Run { app: String, app_args: Vec<String>, }, Status { name: Option<String>, output: OutputFormat, }, Logs { name: Option<String>, follow: bool, tail: Option<u32>, since: Option<String>, }, Export { export_cmd: ExportCommand, }, Stats { name: Option<String>, no_stream: bool, output: OutputFormat, }, Remove { name: Option<String>, all: bool, force: bool, stale: bool, config: bool, }, Inspect { name: Option<String>, config: bool, quadlet: bool, env: bool, output: OutputFormat, }, Serve { name: String, }, Compositor { name: String, }, Enter { name: Option<String>, edit: bool, }, Create { image: String, name: Option<String>, packages: Option<String>, no_start: bool, edit: bool, }, Edit { name: Option<String>, rebuild: bool, }, List { output: OutputFormat, }, Clone { src: String, dst: String, copy_home: bool, }, Init { image: Option<String>, name: Option<String>, interactive: bool, profile: Option<String>, }, Update { name: Option<String>, no_restart: bool, }, Pull { image: Option<String>, }, Profile { profile_cmd: ProfileCommand, }, Doctor { name: Option<String>, fix: bool, output: OutputFormat, }, Completions { shell: Shell, abbrs: bool, }, Diff { name: Option<String>, apply: bool, output: OutputFormat, }, Snapshot { snapshot_cmd: SnapshotCommand, }, Restore { tag: String, name: Option<String>, }, Use { name: Option<String>, clear: bool, }, FindDefinition { name: Option<String>, }, Recover { name: Option<String>, yes: bool, }, History { name: Option<String>, limit: usize, output: OutputFormat, }, TranslatePath { to_container: bool, to_host: bool, path: String, }, Migrate { force: bool, }, CompleteNames,
}

Variants§

§

InternalStdinWatchdog

Internal stdin watchdog for interactive sessions. Not for direct use.

Fields

§parent_pid: u32

PID of the process to terminate when stdin hangs up.

§

Build

Build the container image from the definition.

Fields

§name: Option<String>

Container name to build (overrides auto-detection).

§rebuild: bool

Force rebuild even if definition hasn’t changed.

§no_diff: bool

Skip post-build drift check.

§edit: bool

Open config in editor before building.

§

Enable

Install Quadlet systemd files and enable the container.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§

Disable

Disable and remove Quadlet systemd files.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§force: bool

Skip config loading and remove Quadlet files by name only.

§

Start

Start the container.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§timeout: u64

Maximum seconds to wait for the container to become ready.

§edit: bool

Open config in editor before starting.

§

Stop

Stop the container.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§

Exec

Execute a command interactively in the container.

Fields

§root: bool

Run as root inside the container (omit -u flag).

§args: Vec<String>

Command and arguments to execute.

§

Run

Run a GUI application in the container (detached).

Fields

§app: String

Application to run.

§app_args: Vec<String>

Additional arguments for the application.

§

Status

Show container status.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§output: OutputFormat

Output format (text or json).

§

Logs

Show container logs.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§follow: bool

Follow log output.

§tail: Option<u32>

Number of lines to show from the end (default: 50).

§since: Option<String>

Show logs since this duration (e.g. “5m”, “1h”, “2024-01-01”).

§

Export

Export a .desktop app or binary shim to the host.

Fields

§export_cmd: ExportCommand
§

Stats

Show resource usage for the container (wraps podman stats).

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§no_stream: bool

Only show one snapshot, don’t stream.

§output: OutputFormat

Output format (text or json).

§

Remove

Remove the container.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§all: bool

Also remove the home directory.

§force: bool

Skip confirmation prompt.

§stale: bool

Remove stale/orphaned containers (no valid config, not running).

§config: bool

Also delete the TOML definition file.

§

Inspect

Inspect container configuration, generated Quadlet, or computed environment.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§config: bool

Show the resolved TOML config.

§quadlet: bool

Show the generated Quadlet (.container file).

§env: bool

Show the computed environment variables.

§output: OutputFormat

Output format (text or json).

§

Serve

Run the host socket server (socket-activated by systemd).

Fields

§name: String

Container name to serve.

§

Compositor

Run the Wayland firewall proxy (systemd companion service).

Fields

§name: String

Container name to proxy.

§

Enter

Open an interactive shell in the container.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§edit: bool

Open config in editor before entering shell.

§

Create

Create and start a container from a profile or image in one step.

Fields

§image: String

Profile name (fedora, cachy) or full image reference.

§name: Option<String>

Override the container name.

§packages: Option<String>

Comma-separated list of packages to install (e.g. “fastfetch,btop”).

§no_start: bool

Skip starting the container after setup.

§edit: bool

Open config in editor before creating.

§

Edit

Open the container config in your preferred editor.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§rebuild: bool

After saving, rebuild the image if image config changed.

§

List

List all managed containers.

Fields

§output: OutputFormat

Output format (text or json).

§

Clone

Clone an existing container config to a new name.

Fields

§src: String

Source container name.

§dst: String

Destination container name.

§copy_home: bool

Also copy the home directory contents.

§

Init

Initialize a new container config.

Fields

§image: Option<String>

Base image reference (e.g. “fedora:44”) for a non-prebuilt container. If omitted, defaults to “fedora:44”.

§name: Option<String>

Container name (defaults to the image name).

§interactive: bool

Run an interactive wizard to build the config.

§profile: Option<String>

Use a named profile (cachy, fedora, dev) as template.

§

Update

Pull the latest image and restart the container.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§no_restart: bool

Skip restart after update.

§

Pull

Pull a prebuilt image without building.

Fields

§image: Option<String>

Distro shorthand or full image reference.

§

Profile

Manage container profiles.

Fields

§profile_cmd: ProfileCommand
§

Doctor

Run diagnostic checks.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§fix: bool

Auto-fix common issues (e.g. corrupted Wayland socket ownership).

§output: OutputFormat

Output format (text or json).

§

Completions

Generate shell completions.

Fields

§shell: Shell

Shell to generate completions for.

§abbrs: bool

Also print daily-driver abbr shorthand (fish only).

§

Diff

Compare declared packages against the running container.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§apply: bool

Update the config TOML’s install list to match the container.

§output: OutputFormat

Output format (text or json).

§

Snapshot

Snapshot the current container state as a tagged image.

Fields

§snapshot_cmd: SnapshotCommand
§

Restore

Restore a container from a snapshot.

Fields

§tag: String

Tag of the snapshot to restore.

§name: Option<String>

Container name (overrides auto-detection / active context).

§

Use

Set or show active context.

Fields

§name: Option<String>

Container name to set as active (omit to show current context).

§clear: bool

Clear the active context.

§

FindDefinition

Find the definition file that would be used.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§

Recover

Guided repair for a container that won’t start.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§yes: bool

Run every step without prompting.

§

History

Show the recent lifecycle action history.

Fields

§name: Option<String>

Container name filter (leave empty for all containers).

§limit: usize

Maximum number of entries to show (0 = no limit).

§output: OutputFormat

Output format (text or json).

§

TranslatePath

Translate a path between host and container.

Fields

§to_container: bool

Direction of translation.

§to_host: bool

Direction of translation.

§path: String

Path to translate.

§

Migrate

Migrate legacy config files from ~/.config/podbox/ to ~/.config/podbox/profiles/

Fields

§force: bool

Overwrite files in target profiles/ directory if they exist.

§

CompleteNames

Print known container names, one per line (shell completion helper).

Trait Implementations§

Source§

impl FromArgMatches for Command

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Command

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<D> OwoColorize for D

Source§

fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>
where C: Color,

Set the foreground color generically Read more
Source§

fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>
where C: Color,

Set the background color generically. Read more
Source§

fn black(&self) -> FgColorDisplay<'_, Black, Self>

Change the foreground color to black
Source§

fn on_black(&self) -> BgColorDisplay<'_, Black, Self>

Change the background color to black
Source§

fn red(&self) -> FgColorDisplay<'_, Red, Self>

Change the foreground color to red
Source§

fn on_red(&self) -> BgColorDisplay<'_, Red, Self>

Change the background color to red
Source§

fn green(&self) -> FgColorDisplay<'_, Green, Self>

Change the foreground color to green
Source§

fn on_green(&self) -> BgColorDisplay<'_, Green, Self>

Change the background color to green
Source§

fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>

Change the foreground color to yellow
Source§

fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>

Change the background color to yellow
Source§

fn blue(&self) -> FgColorDisplay<'_, Blue, Self>

Change the foreground color to blue
Source§

fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>

Change the background color to blue
Source§

fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to magenta
Source§

fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to magenta
Source§

fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to purple
Source§

fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to purple
Source§

fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>

Change the foreground color to cyan
Source§

fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>

Change the background color to cyan
Source§

fn white(&self) -> FgColorDisplay<'_, White, Self>

Change the foreground color to white
Source§

fn on_white(&self) -> BgColorDisplay<'_, White, Self>

Change the background color to white
Source§

fn default_color(&self) -> FgColorDisplay<'_, Default, Self>

Change the foreground color to the terminal default
Source§

fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>

Change the background color to the terminal default
Source§

fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>

Change the foreground color to bright black
Source§

fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>

Change the background color to bright black
Source§

fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>

Change the foreground color to bright red
Source§

fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>

Change the background color to bright red
Source§

fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>

Change the foreground color to bright green
Source§

fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>

Change the background color to bright green
Source§

fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>

Change the foreground color to bright yellow
Source§

fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>

Change the background color to bright yellow
Source§

fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>

Change the foreground color to bright blue
Source§

fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>

Change the background color to bright blue
Source§

fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright magenta
Source§

fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright magenta
Source§

fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright purple
Source§

fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright purple
Source§

fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>

Change the foreground color to bright cyan
Source§

fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>

Change the background color to bright cyan
Source§

fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>

Change the foreground color to bright white
Source§

fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>

Change the background color to bright white
Source§

fn bold(&self) -> BoldDisplay<'_, Self>

Make the text bold
Source§

fn dimmed(&self) -> DimDisplay<'_, Self>

Make the text dim
Source§

fn italic(&self) -> ItalicDisplay<'_, Self>

Make the text italicized
Source§

fn underline(&self) -> UnderlineDisplay<'_, Self>

Make the text underlined
Make the text blink
Make the text blink (but fast!)
Source§

fn reversed(&self) -> ReversedDisplay<'_, Self>

Swap the foreground and background colors
Source§

fn hidden(&self) -> HiddenDisplay<'_, Self>

Hide the text
Source§

fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>

Cross out the text
Source§

fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either OwoColorize::fg or a color-specific method, such as OwoColorize::green, Read more
Source§

fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either OwoColorize::bg or a color-specific method, such as OwoColorize::on_yellow, Read more
Source§

fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the foreground color to a specific RGB value.
Source§

fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the background color to a specific RGB value.
Source§

fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>

Sets the foreground color to an RGB value.
Source§

fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>

Sets the background color to an RGB value.
Source§

fn style(&self, style: Style) -> Styled<&Self>

Apply a runtime-determined style
Source§

fn if_supports_color<'a, Out, ApplyFn>( &'a self, stream: impl Into<Stream>, apply: ApplyFn, ) -> SupportsColorsDisplay<'a, Self, Out, ApplyFn>
where ApplyFn: Fn(&'a Self) -> Out,

Apply a given transformation function to all formatters if the given stream supports at least basic ANSI colors, allowing you to conditionally apply given styles/colors. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more