use clap::Subcommand;
use crate::cli::commands::request_commands::send::SendCommand;
#[derive(clap::Args, Debug, Clone)]
pub struct CollectionCommand {
#[command(subcommand)]
pub collection_subcommand: CollectionSubcommand,
#[arg(long, global = true)]
pub env: Option<String>
}
#[derive(Subcommand, Debug, Clone)]
pub enum CollectionSubcommand {
List {
#[arg(long)]
request_names: bool
},
Info {
collection_name: String,
#[arg(long)]
without_request_names: bool
},
New {
collection_name: String
},
Delete {
collection_name: String,
},
Rename {
collection_name: String,
new_collection_name: String
},
Send {
collection_name: String,
#[clap(flatten)]
subcommand: SendCommand
},
}