Enum quartz_cli::cli::Commands
source · pub enum Commands {
Show 19 variants
Init {
directory: Option<PathBuf>,
},
Send {
show: Vec<String>,
},
Create {
handle: String,
url: Option<String>,
method: Option<String>,
query: Vec<String>,
header: Vec<String>,
switch: bool,
},
Use {
handle: String,
},
Status {
command: StatusCommands,
},
List {
depth: Option<u16>,
},
Remove {
handle: String,
},
Show {
handle: Option<String>,
},
Edit {
editor: Option<String>,
},
Url {
command: EndpointUrlCommands,
},
Method {
command: EndpointMethodCommands,
},
Query {
command: EndpointQueryCommands,
},
Header {
set: Vec<String>,
get: Option<String>,
remove: Vec<String>,
list: bool,
},
Body {
stdin: bool,
edit: bool,
print: bool,
},
Last {
date: Option<String>,
command: Option<LastCommands>,
},
History {
max_count: Option<usize>,
date: Option<String>,
show: Vec<String>,
},
Context {
command: ContextCommands,
},
Variable {
get: Option<String>,
set: Vec<String>,
list: bool,
edit: bool,
},
Config {
command: ConfigCommands,
},
}Variants§
Init
Initialize quartz
Send
Fields
Send request using the current handle’s endpoint and outputs the response
Create
Fields
Create a new handle
Use
Switch to a handle
Status
Fields
§
command: StatusCommandsPrint the current status of quartz
List
Lists available handles
Remove
Delete the specified handle recursively
Show
Print endpoint informations at a handle
Edit
Fields
Open an editor to modify endpoint in use
Url
Fields
§
command: EndpointUrlCommandsManage current handle’s endpoint URL
Method
Fields
§
command: EndpointMethodCommandsManage current handle’s endpoint method
Query
Fields
§
command: EndpointQueryCommandsManage current handle’s endpoint query params
Header
Fields
Manage current handle’s endpoint headers
Body
Fields
Manage current handle’s endpoint request body
Last
Print information about last request or response
History
Fields
Print request history
Context
Fields
§
command: ContextCommandsVariable
Fields
Manage current context’s variables
Config
Fields
§
command: ConfigCommandsManage configuration for quartz
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
source§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 RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin 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