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,
},
}