1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
mod build;
mod create;
mod validate;

use self::{create::Create, validate::Validate};
use crate::errors::io_error;
use crate::types::Context;
use build::Build;
use clap::Parser;
use composer_primitives::result;
use composer_primitives::{Execute, Result};
use std::fs;
use std::path::PathBuf;
use std::time::Instant;

#[derive(Parser, Debug)]
pub enum Commands {
    #[command(about = "Build the current package as a workflow")]
    Build {
        #[command(flatten)]
        command: Build,
    },

    #[command(about = "Create a new package for echo")]
    Create {
        #[command(flatten)]
        command: Create,
    },

    #[structopt(about = "Validate the configuration file")]
    Validate {
        #[command(flatten)]
        command: Validate,
    },
}