split admin command enum from handler
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
263e338088
commit
ccfa939bd3
6 changed files with 89 additions and 84 deletions
|
@ -12,7 +12,7 @@ fn get_help_subcommand() { get_help_inner("help"); }
|
|||
fn get_help_inner(input: &str) {
|
||||
use clap::Parser;
|
||||
|
||||
use crate::handler::AdminCommand;
|
||||
use crate::admin::AdminCommand;
|
||||
|
||||
let Err(error) = AdminCommand::try_parse_from(["argv[0] doesn't matter", input]) else {
|
||||
panic!("no error!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue