use crate::actions::ActionKind;
use super::abstract_command::AbstractCommand;
use super::{CommandName, CommandSpec, command_spec};
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
pub struct GenerateCommand;
impl GenerateCommand {
pub const fn new() -> Self {
Self
}
pub fn spec(&self) -> &'static CommandSpec {
command_spec(CommandName::Generate).expect("generate command spec")
}
pub const fn action_kind(&self) -> ActionKind {
ActionKind::Generate
}
}
impl AbstractCommand for GenerateCommand {
fn command_name(&self) -> CommandName {
CommandName::Generate
}
}