pub enum Commands {
Show 22 variants
Pack {
input: PathBuf,
output: PathBuf,
base: Option<PathBuf>,
compression: String,
encrypt: bool,
block_size: u32,
workers: Option<usize>,
dcam: bool,
dcam_optimal: bool,
silent: bool,
},
Extract {
input: PathBuf,
output: PathBuf,
},
Show {
snap: PathBuf,
json: bool,
},
Diff {
a: PathBuf,
b: PathBuf,
},
Log {
dir: PathBuf,
},
Convert {
format: String,
input: PathBuf,
output: PathBuf,
compression: String,
block_size: u32,
silent: bool,
},
Predict {
path: PathBuf,
block_size: u32,
min_chunk: Option<u32>,
avg_chunk: Option<u32>,
max_chunk: Option<u32>,
json: bool,
},
Mount {
snap: String,
mountpoint: PathBuf,
overlay: Option<PathBuf>,
editable: bool,
daemon: bool,
cache_size: Option<String>,
uid: u32,
gid: u32,
},
Unmount {
mountpoint: PathBuf,
},
Shell {
snap: String,
overlay: Option<PathBuf>,
editable: bool,
cache_size: Option<String>,
},
Commit {
output: PathBuf,
mountpoint: Option<PathBuf>,
base: Option<PathBuf>,
},
Checkout {
archive: PathBuf,
path: PathBuf,
},
Status {
path: Option<PathBuf>,
},
Init {
path: Option<PathBuf>,
},
Remote {
action: RemoteCommand,
},
Push {
remote: String,
archive: Option<PathBuf>,
},
Pull {
remote: String,
archive: Option<String>,
},
Serve {
snap: String,
port: u16,
bind: String,
daemon: bool,
},
Keygen {
output_dir: Option<PathBuf>,
},
Sign {
key: PathBuf,
image: PathBuf,
},
Verify {
key: PathBuf,
image: PathBuf,
},
Doctor,
}Variants§
Pack
Pack a file or directory into a deduplicated archive
Fields
Extract
Extract an archive back to a file or directory
Show
Show archive details and metadata
Diff
Compare two archives and show storage savings
Log
List archives in a directory and show their lineage
Convert
Convert external data formats into Hexz archives
Fields
Predict
Predict compression and deduplication potential
Fields
Mount
Mount an archive as a FUSE filesystem
Fields
Unmount
Unmount a previously mounted archive
Shell
Drop into a shell within a mounted archive
Fields
Commit
Commit changes from a writable mount to a new thin archive
Fields
Checkout
Initialize a workspace from an archive (Git-style)
Status
Show changes in the current workspace
Init
Initialize a new empty workspace
Remote
Manage remote endpoints for the workspace
Fields
action: RemoteCommandPush
Push thin archives to a remote endpoint
Fields
Pull
Pull thin archives from a remote endpoint
Fields
Serve
Serve an archive over the network (HTTP range requests)
Fields
Keygen
Generate an Ed25519 signing keypair
Sign
Sign an archive
Verify
Verify an archive’s signature
Doctor
Run system health check and diagnostics
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>
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>
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
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
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
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>
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>
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