pub struct CmdParams { /* private fields */ }
Expand description
CmdParams are used to control the execution of run_cmd_vec().
garden cmd
and garden <custom-cmd>
parse command line arguments into CmdParams.
Implementations§
source§impl CmdParams
impl CmdParams
pub fn new() -> Self
sourcepub fn from_cmd_options(options: &CmdOptions) -> Self
pub fn from_cmd_options(options: &CmdOptions) -> Self
Build CmdParams from a CmdOptions struct
sourcepub fn from_custom_options(options: &CustomOptions) -> Self
pub fn from_custom_options(options: &CustomOptions) -> Self
Build CmdParams from a CustomOptions struct