pub trait CliCommand {
    // Required method
    fn run(&self, context: &Context) -> Result<(), AppleCodesignError>;

    // Provided method
    fn as_config(&self) -> Result<Option<Config>, AppleCodesignError> { ... }
}

Required Methods§

source

fn run(&self, context: &Context) -> Result<(), AppleCodesignError>

Runs the command.

Provided Methods§

source

fn as_config(&self) -> Result<Option<Config>, AppleCodesignError>

Obtain the current command arguments normalized to a Config instance.

Implementors§