mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-30 20:37:20 +02:00
Command Usage
- Enhanced CmdHelp by adding aliases. - Corrected usage for CmdModify. - Renamed CmdQuery --> CmdExport. - Added an alias _query --> export.
This commit is contained in:
parent
3ef8f3f31a
commit
4d410972d4
8 changed files with 31 additions and 17 deletions
|
@ -90,6 +90,20 @@ int CmdHelp::execute (std::string& output)
|
|||
}
|
||||
}
|
||||
|
||||
// Add the aliases commands.
|
||||
row = view.addRow ();
|
||||
view.set (row, 1, " ");
|
||||
|
||||
std::map <std::string, std::string>::iterator alias;
|
||||
for (alias = context.aliases.begin ();
|
||||
alias != context.aliases.end ();
|
||||
++alias)
|
||||
{
|
||||
row = view.addRow ();
|
||||
view.set (row, 1, alias->first);
|
||||
view.set (row, 2, "Aliased to '" + alias->second + "'");
|
||||
}
|
||||
|
||||
/*
|
||||
row = view.addRow ();
|
||||
view.set (row, 1, "task ID /from/to/g");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue