1 2 3 4 5 6 7 8 9
use clap::{App, ArgMatches};
use crate::rules::errors::Error;
pub trait Command {
fn name(&self) -> &'static str;
fn command(&self) -> App<'static, 'static>;
fn execute(&self, args: &ArgMatches) -> Result<i32, Error>;
}