use std::option::Option;
use structopt::StructOpt;
#[derive(Debug, StructOpt)]
pub enum Command {
#[structopt(name = "sec")]
Secret(SecCommand),
#[structopt(name = "par")]
Parameter(ParCommand),
}
#[derive(Debug, StructOpt)]
pub enum SecCommand {
List {},
Get {
#[structopt(long)]
name: String,
},
Describe {
#[structopt(long)]
name: String,
},
Create {
#[structopt(long)]
name: String,
#[structopt(long)]
secret: String,
},
Delete {
#[structopt(long)]
name: String,
},
}
#[derive(Debug, StructOpt)]
pub enum ParCommand {
List {},
Get {
#[structopt(long)]
name: String,
},
Create {
#[structopt(long)]
name: String,
#[structopt(long)]
value: String,
},
Delete {
#[structopt(long)]
name: String,
},
Apply {
#[structopt(long, default_value = "./templates/parameter_store_template.yaml")]
path: std::path::PathBuf,
},
}