composer_cli/commands/
mod.rs1mod build;
2mod create;
3mod validate;
4
5use self::{create::Create, validate::Validate};
6use crate::errors::io_error;
7use crate::types::Context;
8use build::Build;
9use clap::Parser;
10use composer_primitives::result;
11use composer_primitives::{Execute, Result};
12use std::fs;
13use std::path::PathBuf;
14use std::time::Instant;
15
16#[derive(Parser, Debug)]
17pub enum Commands {
18 #[command(about = "Build the current package as a workflow")]
19 Build {
20 #[command(flatten)]
21 command: Build,
22 },
23
24 #[command(about = "Create a new package for echo")]
25 Create {
26 #[command(flatten)]
27 command: Create,
28 },
29
30 #[structopt(about = "Validate the configuration file")]
31 Validate {
32 #[command(flatten)]
33 command: Validate,
34 },
35}