pub trait CommandSpec {
const NAME: &'static str;
// Required methods
fn metadata() -> CommandMeta;
fn lower(flags: Vec<(String, Arg)>, args: Vec<Arg>) -> Result<StepKind>;
}Expand description
Trait for command metadata and lowering. No execution types.
This trait lives in oxdock-parser and has zero dependencies on
oxdock-core. Execution dispatch is handled separately by the
define_pipeline! macro in oxdock-core.
Required Associated Constants§
Required Methods§
fn metadata() -> CommandMeta
fn lower(flags: Vec<(String, Arg)>, args: Vec<Arg>) -> Result<StepKind>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".