pub enum Command {
Formats {
action: Option<FormatsAction>,
},
Config {
action: ConfigAction,
},
Catalog {
action: CatalogAction,
},
Theme {
action: ThemeAction,
},
Cache {
action: CacheAction,
},
Views {
action: ViewsAction,
},
Completions {
shell: Shell,
},
Man {
page: Option<String>,
list: bool,
dir: Option<PathBuf>,
},
}Expand description
Commands besides opening data.
Variants§
Formats
List the format specs and dictionaries (FIX, DBC) on the search path: each one’s name, what it matches, its file, and the copies it overrides
Fields
§
action: Option<FormatsAction>Config
Write the default config file, list the files read, or list every key
Fields
§
action: ConfigActionCatalog
Show the catalogs of named datasets on the home screen, or check a catalog file
Fields
§
action: CatalogActionTheme
List the themes, built in and in the config directory’s themes/, or print one as a file to start from
Fields
§
action: ThemeActionCache
Clear the cache: recents, history, schemas and copies
Fields
§
action: CacheActionViews
List or remove saved views
Fields
§
action: ViewsActionCompletions
Print the shell completion script for SHELL
Man
Show a manual page, list them, or write them all under a directory
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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 Command
impl Subcommand for Command
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 Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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