[Refactor] added cli wrapper to hab
@@ -35,8 +35,10 @@ use self::{bldr::{ConfigOptChannelCreate,
JobPromote,
JobStart,
JobStatus},
- cli::{Cli,
- ConfigOptCli},
+ cli::{CliCompleters,
+ ConfigOptCliCompleters,
+ CliSetup,
+ ConfigOptCliSetup},
config::{ConfigOptServiceConfig,
ConfigOptServiceConfigApply,
ServiceConfig,
@@ -182,6 +184,18 @@ pub enum Job {
Status(JobStatus),
}
+#[derive(ConfigOpt, StructOpt)]
+#[structopt(no_version, aliases = &["cl"], settings = &[AppSettings::ArgRequiredElseHelp, AppSettings::SubcommandRequiredElseHelp])]
+/// Commands relating to Habitat runtime config
+pub enum Cli {
+ #[structopt(no_version, aliases = &["s", "se", "set", "setu"])]
+ /// Sets up the CLI with reasonable defaults
+ Setup(CliSetup),
+ #[structopt(no_version, aliases = &["c", "co", "com", "comp"])]
+ /// Creates command-line completers for your shell
+ Completers(CliCompleters),
+}
+
/// Commands relating to Habitat users
#[derive(ConfigOpt, StructOpt)]
#[structopt(name = "user", no_version, aliases = &["u", "us", "use"], settings = &[AppSettings::ArgRequiredElseHelp, AppSettings::SubcommandRequiredElseHelp])]
