add an 'info' subcommand

This commit is contained in:
Dustin J. Mitchell
2020-11-24 11:31:56 -05:00
parent 888b38fd79
commit 8233763295
4 changed files with 112 additions and 1 deletions

View File

@@ -5,15 +5,23 @@ use taskchampion::{taskstorage, Replica};
#[macro_use]
mod macros;
mod shared;
mod add;
mod gc;
mod info;
mod list;
mod pending;
/// Get a list of all subcommands in this crate
pub(crate) fn subcommands() -> Vec<Box<dyn SubCommand>> {
vec![add::cmd(), gc::cmd(), list::cmd(), pending::cmd()]
vec![
add::cmd(),
gc::cmd(),
list::cmd(),
pending::cmd(),
info::cmd(),
]
}
/// The result of a [`crate::cmd::SubCommand::arg_match`] call