[Refactor] added plan wrapper to hab
@@ -53,8 +53,10 @@ use self::{bldr::{ConfigOptChannelCreate,
ConfigOptPkgInstall,
Pkg,
PkgInstall},
- plan::{ConfigOptPlan,
- Plan},
+ plan::{ConfigOptPlanInit,
+ ConfigOptPlanRender,
+ PlanInit,
+ PlanRender},
ring::{ConfigOptRingKeyExport,
ConfigOptRingKeyImport,
ConfigOptRingKeyGenerate,
@@ -234,6 +236,16 @@ pub enum UserKey {
Generate(UserKeyGenerate),
}
+#[derive(ConfigOpt, StructOpt)]
+#[structopt(no_version, aliases = &["pl", "pla"], settings = &[AppSettings::ArgRequiredElseHelp, AppSettings::SubcommandRequiredElseHelp])]
+/// Commands relating to plans and other app-specific configuration
+pub enum Plan {
+ #[structopt(no_version, aliases = &["i", "in", "ini"])]
+ Init(PlanInit),
+ #[structopt(no_version, aliases = &["r", "re", "ren", "rend", "rende"])]
+ Render(PlanRender),
+}
+
#[derive(ConfigOpt, StructOpt)]
#[structopt(no_version, aliases = &["r", "ri", "rin"], settings = &[AppSettings::ArgRequiredElseHelp, AppSettings::SubcommandRequiredElseHelp])]
/// Commands relating to Habitat rings
