n4n5::cli

Trait CliCommand

source
pub(crate) trait CliCommand {
    // Required methods
    fn invoke(config: &mut Config, args_matches: &ArgMatches);
    fn get_subcommand() -> Command;
}
Expand description

A trait for CLI commands

Required Methods§

source

fn invoke(config: &mut Config, args_matches: &ArgMatches)

Invoke the command

source

fn get_subcommand() -> Command

Get the subcommand

Object Safety§

This trait is not object safe.

Implementors§