pub enum ConfigCommands {
Show 20 variants
Add {
name: String,
file_or_url: String,
force: bool,
strict: bool,
},
List {
verbose: bool,
},
Remove {
name: String,
},
Edit {
name: String,
},
SetUrl {
name: String,
url: String,
env: Option<String>,
},
GetUrl {
name: String,
},
ListUrls {},
SetSecret {
api_name: String,
scheme_name: Option<String>,
env: Option<String>,
interactive: bool,
},
ListSecrets {
api_name: String,
},
RemoveSecret {
api_name: String,
scheme_name: String,
},
ClearSecrets {
api_name: String,
force: bool,
},
Reinit {
context: Option<String>,
all: bool,
},
ClearCache {
api_name: Option<String>,
all: bool,
},
CacheStats {
api_name: Option<String>,
},
Set {
key: String,
value: String,
},
Get {
key: String,
json: bool,
},
Settings {
json: bool,
},
SetMapping {
api_name: String,
group: Option<Vec<String>>,
operation: Option<String>,
name: Option<String>,
op_group: Option<String>,
alias: Option<String>,
remove_alias: Option<String>,
hidden: bool,
visible: bool,
},
ListMappings {
api_name: String,
},
RemoveMapping {
api_name: String,
group: Option<String>,
operation: Option<String>,
},
}Variants§
Add
Add a new API specification from a file
Fields
List
List all registered API specifications
Remove
Remove an API specification from configuration
Fields
Edit
Edit an API specification in your default editor
Fields
SetUrl
Set base URL for an API specification
Fields
GetUrl
Get base URL configuration for an API specification
Fields
ListUrls
List all configured base URLs
SetSecret
Set secret configuration for an API specification security scheme
Fields
ListSecrets
List configured secrets for an API specification
Fields
RemoveSecret
Remove a specific configured secret for an API specification
Fields
ClearSecrets
Clear all configured secrets for an API specification
Fields
Reinit
Re-initialize cached specifications
Fields
ClearCache
Clear response cache
Fields
CacheStats
Show response cache statistics
Fields
Set
Set a global configuration setting
Fields
Get
Get a global configuration setting value
Fields
Settings
List all available configuration settings
SetMapping
Set a command mapping for an API specification
Fields
Mark an operation as hidden from help output
ListMappings
List command mappings for an API specification
RemoveMapping
Remove a command mapping for an API specification
Trait Implementations§
Source§impl Debug for ConfigCommands
impl Debug for ConfigCommands
Source§impl FromArgMatches for ConfigCommands
impl FromArgMatches for ConfigCommands
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 ConfigCommands
impl Subcommand for ConfigCommands
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