pub enum Commands {
Show 20 variants
Pack {Show 13 fields
output: PathBuf,
disk: Option<PathBuf>,
memory: Option<PathBuf>,
compression: String,
encrypt: bool,
train_dict: bool,
block_size: u32,
min_chunk: Option<u32>,
avg_chunk: Option<u32>,
max_chunk: Option<u32>,
workers: Option<usize>,
dcam: bool,
silent: bool,
},
Import {
input: PathBuf,
output: PathBuf,
base: Option<PathBuf>,
compression: String,
block_size: u32,
silent: bool,
},
Export {
input: PathBuf,
output: Option<PathBuf>,
tensor: Option<String>,
},
Show {
snap: PathBuf,
json: bool,
},
Diff {
a: PathBuf,
b: PathBuf,
},
Log {
dir: PathBuf,
},
Build {
source: PathBuf,
output: PathBuf,
memory: Option<PathBuf>,
profile: Option<String>,
encrypt: bool,
},
Convert {
format: String,
input: PathBuf,
output: PathBuf,
compression: String,
block_size: u32,
profile: Option<String>,
silent: bool,
},
Predict {
file: PathBuf,
block_size: u32,
min_chunk: Option<u32>,
avg_chunk: Option<u32>,
max_chunk: Option<u32>,
json: bool,
},
Boot {
snap: String,
ram: Option<String>,
no_kvm: bool,
network: String,
backend: String,
persist: Option<PathBuf>,
qmp_socket: Option<PathBuf>,
no_graphics: bool,
vnc: bool,
},
Install {
iso: PathBuf,
output: PathBuf,
primary_size: String,
ram: String,
no_graphics: bool,
vnc: bool,
},
Snap {
socket: PathBuf,
base: PathBuf,
overlay: PathBuf,
output: PathBuf,
},
Commit {
base: PathBuf,
overlay: PathBuf,
output: PathBuf,
compression: String,
block_size: u32,
keep_overlay: bool,
memory: Option<PathBuf>,
message: Option<String>,
thin: bool,
},
Mount {
snap: String,
mountpoint: PathBuf,
overlay: Option<PathBuf>,
daemon: bool,
rw: bool,
cache_size: Option<String>,
uid: u32,
gid: u32,
nbd: bool,
prefetch: Option<u32>,
},
Unmount {
mountpoint: PathBuf,
},
Doctor,
Serve {
snap: String,
port: u16,
bind: String,
daemon: bool,
nbd: bool,
},
Keygen {
output_dir: Option<PathBuf>,
},
Sign {
key: PathBuf,
image: PathBuf,
},
Verify {
key: PathBuf,
image: PathBuf,
},
}Expand description
Top-level command categories
Variants§
Pack
Pack files into a snapshot
Fields
Import
Import safetensors as a snapshot
Fields
Export
Export safetensors from a snapshot
Fields
Show
Show snapshot details
Diff
Compare two snapshots
Log
Show snapshot lineage tree
Build
Pack with profile presets
Fields
Convert
Convert external formats to snapshot
Fields
Predict
Estimate compression savings
Fields
Boot
Boot a VM from snapshot
Fields
Install
Install OS from ISO to snapshot
Fields
Snap
Take a live VM snapshot
Fields
Commit
Commit overlay to new snapshot
Fields
Mount
Mount snapshot as filesystem
Fields
Unmount
Unmount snapshot filesystem
Doctor
Check system requirements
Serve
Serve snapshot over network
Fields
Keygen
Generate signing keypair
Sign
Sign a snapshot
Verify
Verify snapshot signature
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
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>
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 Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
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 moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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