Module mcfg::actions [−][src]
These actions are complete stand-alone entry points for the command-line tools. These may be invoked by other tools, however they may have side-effects such as writing to stdout.
Example
The following is an example Action
implementation that does very little.
use mcfg::actions::Action; use mcfg::error::Result; #[derive(Debug)] pub struct ExampleAction {} impl Action for ExampleAction { fn run(&self) -> Result<()> { println!("ListAction::run {:?}", self); Ok(()) } } impl ExampleAction { pub fn new() -> Result<Box<dyn Action>> { Ok(Box::from(ExampleAction {})) } }
Structs
EditInstallersAction | |
HistoryAction | |
InitAction | |
InstallAction | |
ListAction | |
ManageAction | |
RefreshAction | |
ShowPathsAction | |
UpdateSelfAction |
Traits
Action |