move debug subcommand impl
This commit is contained in:
parent
aaded51d38
commit
8dd10c9b29
1 changed files with 8 additions and 4 deletions
12
src/main.rs
12
src/main.rs
|
@ -150,10 +150,7 @@ fn run() -> anyhow::Result<()> {
|
||||||
|
|
||||||
match new_args.sub {
|
match new_args.sub {
|
||||||
Some(cli::Subcommands::Debug(args)) => {
|
Some(cli::Subcommands::Debug(args)) => {
|
||||||
if args.demo_conf_menu {
|
return do_subcmd_debug(args);
|
||||||
demos::demo_confirmation_menu();
|
|
||||||
}
|
|
||||||
return Ok(());
|
|
||||||
},
|
},
|
||||||
// Subcommand::Completions{shell} => {
|
// Subcommand::Completions{shell} => {
|
||||||
// // cli().gen_completions_to(
|
// // cli().gen_completions_to(
|
||||||
|
@ -413,6 +410,13 @@ fn get_mafiles_dir() -> String {
|
||||||
return paths[0].to_str().unwrap().into();
|
return paths[0].to_str().unwrap().into();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn do_subcmd_debug(args: cli::ArgsDebug) -> anyhow::Result<()> {
|
||||||
|
if args.demo_conf_menu {
|
||||||
|
demos::demo_confirmation_menu();
|
||||||
|
}
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
|
||||||
fn do_subcmd_setup(args: cli::ArgsSetup, manifest: &mut accountmanager::Manifest) -> anyhow::Result<()> {
|
fn do_subcmd_setup(args: cli::ArgsSetup, manifest: &mut accountmanager::Manifest) -> anyhow::Result<()> {
|
||||||
println!("Log in to the account that you want to link to steamguard-cli");
|
println!("Log in to the account that you want to link to steamguard-cli");
|
||||||
print!("Username: ");
|
print!("Username: ");
|
||||||
|
|
Loading…
Reference in a new issue