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