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. To understand how to
use existing actions, or create new ones, see the User Guide.
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 | This action will invoke the system text editor to edit the installer registry file. |
HistoryAction | This action displays, in a table, the history of installer actions from the log file. |
InitAction | This action initializes the package repository and installer registry on a new machine. |
InstallAction | This action performs one of the core install, update, link-files, or uninstall actions. |
ListAction | This action will list, hierarchically, the package set groups and package sets. |
ManageAction | This action performs simple management actions on the package repository – to add, edit, or remove package sets. |
RefreshAction | This action will refresh the package repository, basically a Git pull. |
RemoveSelfAction | This action will remove the package repository and installer registry. This is only included in the CLI if the feature “remove-self” is included. |
ShellAction | This action will refresh the package repository, basically a Git pull. |
ShowPathsAction | This action displays the current path configuration for the installer registry and package repository. |
UpdateSelfAction | This action asks all installers that support the operation to update themselves. |
Traits
Action | Implemented by the actions exposed by the CLI. |