Treat any bare word in the command line as a report name

This commit is contained in:
Dustin J. Mitchell 2020-12-29 22:54:07 +00:00
parent 21684666a6
commit 0a458b5f5b
9 changed files with 177 additions and 101 deletions

View file

@ -60,9 +60,13 @@ pub(crate) fn invoke(command: Command, settings: Config) -> Fallible<()> {
} => return cmd::modify::execute(&mut w, &mut replica, filter, modification),
Command {
subcommand: Subcommand::List { report },
subcommand:
Subcommand::Report {
report_name,
filter,
},
..
} => return cmd::list::execute(&mut w, &mut replica, report),
} => return cmd::report::execute(&mut w, &mut replica, report_name, filter),
Command {
subcommand: Subcommand::Info { filter, debug },