cli/commands/
build_command.rs1use crate::actions::ActionKind;
4
5use super::abstract_command::AbstractCommand;
6use super::{CommandName, CommandSpec, command_spec};
7
8#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
10pub struct BuildCommand;
11
12impl BuildCommand {
13 pub const fn new() -> Self {
14 Self
15 }
16
17 pub fn spec(&self) -> &'static CommandSpec {
18 command_spec(CommandName::Build).expect("build command spec")
19 }
20
21 pub const fn action_kind(&self) -> ActionKind {
22 ActionKind::Build
23 }
24}
25
26impl AbstractCommand for BuildCommand {
27 fn command_name(&self) -> CommandName {
28 CommandName::Build
29 }
30}