Skip to content

Commit 713219d

Browse files
cacama-valvatadetjensrobert
authored andcommitted
skeleton
1 parent 2f4516b commit 713219d

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

src/cli.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,13 @@ pub enum Commands {
8787
#[arg(short, long, value_name = "PROFILE")]
8888
profile: String,
8989
},
90+
91+
/// Copy an initial rcds.yaml to the current working directory.
92+
///
93+
/// If interactive is enabled, then it will prompt for the various fields of the config file. If left disabled, then it will copy it out with fake data of the expected format.
94+
Init {
95+
/// Guided filling out of the config
96+
#[arg(short = 'i', long)]
97+
interactive: bool
98+
}
9099
}

src/commands/init.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pub fn run(_interactive: &bool)
2+
{
3+
4+
}

src/commands/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ pub mod build;
22
pub mod check_access;
33
pub mod cluster_setup;
44
pub mod deploy;
5+
pub mod init;
56
pub mod validate;
67

78
// These modules should not do much and act mostly as a thunk to handle

src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,9 @@ fn dispatch(cli: cli::Cli) -> anyhow::Result<()> {
8989
commands::validate::run()?;
9090
commands::cluster_setup::run(profile)
9191
}
92+
93+
cli::Commands::Init {
94+
interactive
95+
} => commands::init::run(interactive)
9296
}
9397
}

0 commit comments

Comments
 (0)