pub enum Commands {
Show 17 variants
Cp {
src: PathBuf,
dest: PathBuf,
fields: Vec<Xattr>,
verbose: bool,
},
Mv {
src: PathBuf,
dest: PathBuf,
fields: Vec<Xattr>,
verbose: bool,
},
Rm {
paths: Vec<PathBuf>,
fields: Vec<Xattr>,
flat: bool,
force: bool,
verbose: bool,
},
Get {
paths: Vec<PathBuf>,
fields: Vec<Xattr>,
json: bool,
where_: Vec<Predicate>,
flat: bool,
all: bool,
sort: bool,
visit_empty: bool,
},
Set {
paths: Vec<PathBuf>,
field_assignments: Vec<Assignment>,
flat: bool,
verbose: bool,
},
Ins {
table_path: PathBuf,
records_path: Option<PathBuf>,
verbose: bool,
},
Del {
table_path: PathBuf,
where_: Vec<Predicate>,
key: Vec<Value>,
verbose: bool,
},
Idx {
src: PathBuf,
dest: Option<PathBuf>,
keys: Vec<Xattr>,
verbose: bool,
},
Ls {
paths: Vec<PathBuf>,
sort: bool,
},
Init {
dir: PathBuf,
keys: Vec<Xattr>,
records_path: Option<PathBuf>,
verbose: bool,
},
Create {
dir: PathBuf,
keys: Vec<Xattr>,
records_path: Option<PathBuf>,
verbose: bool,
},
Commit {
dir: Option<PathBuf>,
message: Option<String>,
verbose: bool,
},
Log {
dir: Option<PathBuf>,
},
Touch {
path: PathBuf,
parents: bool,
},
Status {
path: Option<PathBuf>,
},
Restore {
paths: Vec<PathBuf>,
keep: bool,
flat: bool,
verbose: bool,
},
Reset {
commit_uuid: String,
keep: bool,
verbose: bool,
},
}
Variants§
Cp
Copy xattr values from one path to another.
Mv
Move xattr values from one path to another.
Rm
Remove xattr values.
Get
Get and print xattr values for one or more paths.
Fields
Set
Set xattr values
Ins
Insert records into a table, updating related indices
Del
Remove record from a table, updating related indices
Idx
Index tables
Ls
List directory contents as seen by Ghee
Init
Initialize a directory as a Ghee table with specified primary key, then optionally insert records
Create
Like init
, but creates the directory first, or errors if one exists already
Commit
Commit a table, storing its contents as a BTRFS snapshot
Log
Print the commit log
Touch
Create a file, inferring xattrs from path if part of a table
Status
Print the status of files in the table, relative to the most recent commit (if any)
Restore
Return a path to its state as of the commit with uuid specified in commit
Reset
Return the current table to the state it had in the commit with the given uuid commit
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 subcommand