hagridctl: Disable regenerate.
- The regenerate command is too intertwined with the filesystem backend. Fix it later.
This commit is contained in:
parent
fd218bebba
commit
bac42c0b8a
|
@ -21,7 +21,7 @@ use anyhow::Result;
|
|||
use clap::{Arg, App, SubCommand};
|
||||
|
||||
mod import;
|
||||
mod regenerate;
|
||||
//mod regenerate;
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct HagridConfigs {
|
||||
|
@ -60,8 +60,8 @@ fn main() -> Result<()> {
|
|||
.takes_value(true)
|
||||
.default_value("prod")
|
||||
.possible_values(&["dev","stage","prod"]))
|
||||
.subcommand(SubCommand::with_name("regenerate")
|
||||
.about("Regenerate symlink directory"))
|
||||
//.subcommand(SubCommand::with_name("regenerate")
|
||||
// .about("Regenerate symlink directory"))
|
||||
.subcommand(SubCommand::with_name("import")
|
||||
.about("Import keys into Hagrid")
|
||||
.arg(Arg::with_name("dry run")
|
||||
|
@ -93,8 +93,8 @@ fn main() -> Result<()> {
|
|||
.map(|arg| PathBuf::from_str(arg).unwrap())
|
||||
.collect();
|
||||
import::do_import(&config, dry_run, keyrings)?;
|
||||
} else if let Some(_matches) = matches.subcommand_matches("regenerate") {
|
||||
regenerate::do_regenerate(&config)?;
|
||||
//} else if let Some(_matches) = matches.subcommand_matches("regenerate") {
|
||||
// regenerate::do_regenerate(&config)?;
|
||||
} else {
|
||||
println!("{}", matches.usage());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue