pub trait GardenOptions {
// Required methods
fn get_chdir(&self) -> &Option<PathBuf>;
fn get_color_mut(&mut self) -> &mut ColorMode;
fn get_config(&self) -> &Option<PathBuf>;
fn set_config(&mut self, path: PathBuf);
fn get_debug(&self) -> &[String];
fn get_root(&self) -> &Option<PathBuf>;
fn set_root(&mut self, path: PathBuf);
// Provided methods
fn update(&mut self) { ... }
fn debug_level(&self, name: &str) -> u8 { ... }
}Expand description
Garden command-line options that are common to all commands and typically specified before sub-command options and arguments.
Required Methods§
fn get_chdir(&self) -> &Option<PathBuf>
fn get_color_mut(&mut self) -> &mut ColorMode
fn get_config(&self) -> &Option<PathBuf>
fn set_config(&mut self, path: PathBuf)
fn get_debug(&self) -> &[String]
fn get_root(&self) -> &Option<PathBuf>
fn set_root(&mut self, path: PathBuf)
Provided Methods§
Sourcefn debug_level(&self, name: &str) -> u8
fn debug_level(&self, name: &str) -> u8
Return the debug level for the given name.