Cmd*: Added command DNA, which will ѕoon drive functionality

This commit is contained in:
Paul Beckingham 2015-08-01 15:56:04 -04:00
parent d390433ec7
commit bf80c7d514
47 changed files with 712 additions and 388 deletions

View file

@ -37,12 +37,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdAdd::CmdAdd ()
{
_keyword = "add";
_usage = "task add <mods>";
_description = STRING_CMD_ADD_USAGE;
_read_only = false;
_displays_id = false;
_category = Command::Category::operation;
_keyword = "add";
_usage = "task add <mods>";
_description = STRING_CMD_ADD_USAGE;
_read_only = false;
_displays_id = false;
_needs_gc = false;
_uses_context = true;
_accepts_filter = false;
_accepts_modifications = true;
_accepts_miscellaneous = false;
_category = Command::Category::operation;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -35,11 +35,16 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdCompletionAliases::CmdCompletionAliases ()
{
_keyword = "_aliases";
_usage = "task _aliases";
_description = STRING_CMD_ALIASES_USAGE;
_read_only = true;
_displays_id = false;
_keyword = "_aliases";
_usage = "task _aliases";
_description = STRING_CMD_ALIASES_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::internal;
}

View file

@ -39,12 +39,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdAnnotate::CmdAnnotate ()
{
_keyword = "annotate";
_usage = "task <filter> annotate <mods>";
_description = STRING_CMD_ANNO_USAGE;
_read_only = false;
_displays_id = false;
_category = Command::Category::operation;
_keyword = "annotate";
_usage = "task <filter> annotate <mods>";
_description = STRING_CMD_ANNO_USAGE;
_read_only = false;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = true;
_accepts_modifications = true;
_accepts_miscellaneous = false;
_category = Command::Category::operation;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -39,12 +39,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdAppend::CmdAppend ()
{
_keyword = "append";
_usage = "task <filter> append <mods>";
_description = STRING_CMD_APPEND_USAGE;
_read_only = false;
_displays_id = false;
_category = Command::Category::operation;
_keyword = "append";
_usage = "task <filter> append <mods>";
_description = STRING_CMD_APPEND_USAGE;
_read_only = false;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = true;
_accepts_modifications = true;
_accepts_miscellaneous = false;
_category = Command::Category::operation;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -38,12 +38,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdZshAttributes::CmdZshAttributes ()
{
_keyword = "_zshattributes";
_usage = "task _zshattributes";
_description = STRING_CMD_ZSHATTS_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::internal;
_keyword = "_zshattributes";
_usage = "task _zshattributes";
_description = STRING_CMD_ZSHATTS_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::internal;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -1014,12 +1014,17 @@ unsigned Chart::burndown_size (unsigned ntasks)
////////////////////////////////////////////////////////////////////////////////
CmdBurndownMonthly::CmdBurndownMonthly ()
{
_keyword = "burndown.monthly";
_usage = "task <filter> burndown.monthly";
_description = STRING_CMD_BURN_USAGE_M;
_read_only = true;
_displays_id = false;
_category = Command::Category::graphs;
_keyword = "burndown.monthly";
_usage = "task <filter> burndown.monthly";
_description = STRING_CMD_BURN_USAGE_M;
_read_only = true;
_displays_id = false;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::graphs;
}
////////////////////////////////////////////////////////////////////////////////
@ -1043,12 +1048,17 @@ int CmdBurndownMonthly::execute (std::string& output)
////////////////////////////////////////////////////////////////////////////////
CmdBurndownWeekly::CmdBurndownWeekly ()
{
_keyword = "burndown.weekly";
_usage = "task <filter> burndown.weekly";
_description = STRING_CMD_BURN_USAGE_W;
_read_only = true;
_displays_id = false;
_category = Command::Category::graphs;
_keyword = "burndown.weekly";
_usage = "task <filter> burndown.weekly";
_description = STRING_CMD_BURN_USAGE_W;
_read_only = true;
_displays_id = false;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::graphs;
}
////////////////////////////////////////////////////////////////////////////////
@ -1072,12 +1082,17 @@ int CmdBurndownWeekly::execute (std::string& output)
////////////////////////////////////////////////////////////////////////////////
CmdBurndownDaily::CmdBurndownDaily ()
{
_keyword = "burndown.daily";
_usage = "task <filter> burndown.daily";
_description = STRING_CMD_BURN_USAGE_D;
_read_only = true;
_displays_id = false;
_category = Command::Category::graphs;
_keyword = "burndown.daily";
_usage = "task <filter> burndown.daily";
_description = STRING_CMD_BURN_USAGE_D;
_read_only = true;
_displays_id = false;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::graphs;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -37,12 +37,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdCalc::CmdCalc ()
{
_keyword = "calc";
_usage = "task calc <expression>";
_description = STRING_CMD_CALC_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::misc;
_keyword = "calc";
_usage = "task calc <expression>";
_description = STRING_CMD_CALC_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = true;
_category = Command::Category::misc;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -42,12 +42,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdCalendar::CmdCalendar ()
{
_keyword = "calendar";
_usage = "task calendar [due|<month> <year>|<year>] [y]";
_description = STRING_CMD_CAL_USAGE;
_read_only = true;
_displays_id = true;
_category = Command::Category::graphs;
_keyword = "calendar";
_usage = "task calendar [due|<month> <year>|<year>] [y]";
_description = STRING_CMD_CAL_USAGE;
_read_only = true;
_displays_id = true;
_needs_gc = true;
_uses_context = true;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = true;
_category = Command::Category::graphs;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -39,12 +39,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdColor::CmdColor ()
{
_keyword = "colors";
_usage = "task colors [sample | legend]";
_description = STRING_CMD_COLOR_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::misc;
_keyword = "colors";
_usage = "task colors [sample | legend]";
_description = STRING_CMD_COLOR_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = true;
_category = Command::Category::misc;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -39,12 +39,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdColumns::CmdColumns ()
{
_keyword = "columns";
_usage = "task columns [substring]";
_description = STRING_CMD_COLUMNS_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::config;
_keyword = "columns";
_usage = "task columns [substring]";
_description = STRING_CMD_COLUMNS_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = true;
_category = Command::Category::config;
}
////////////////////////////////////////////////////////////////////////////////
@ -115,12 +120,17 @@ int CmdColumns::execute (std::string& output)
////////////////////////////////////////////////////////////////////////////////
CmdCompletionColumns::CmdCompletionColumns ()
{
_keyword = "_columns";
_usage = "task _columns";
_description = STRING_CMD_COLUMNS_USAGE2;
_read_only = true;
_displays_id = false;
_category = Command::Category::internal;
_keyword = "_columns";
_usage = "task _columns";
_description = STRING_CMD_COLUMNS_USAGE2;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::internal;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -39,12 +39,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdConfig::CmdConfig ()
{
_keyword = "config";
_usage = "task config [name [value | '']]";
_description = STRING_CMD_CONFIG_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::config;
_keyword = "config";
_usage = "task config [name [value | '']]";
_description = STRING_CMD_CONFIG_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = true;
_category = Command::Category::config;
}
////////////////////////////////////////////////////////////////////////////////
@ -228,12 +233,17 @@ int CmdConfig::execute (std::string& output)
////////////////////////////////////////////////////////////////////////////////
CmdCompletionConfig::CmdCompletionConfig ()
{
_keyword = "_config";
_usage = "task _config";
_description = STRING_CMD_HCONFIG_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::internal;
_keyword = "_config";
_usage = "task _config";
_description = STRING_CMD_HCONFIG_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::internal;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -40,12 +40,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdContext::CmdContext ()
{
_keyword = "context";
_usage = "task context [<name> | subcommand]";
_description = STRING_CMD_CONTEXT_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::context;
_keyword = "context";
_usage = "task context [<name> | subcommand]";
_description = STRING_CMD_CONTEXT_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = true;
_category = Command::Category::context;
}
////////////////////////////////////////////////////////////////////////////////
@ -366,12 +371,17 @@ int CmdContext::unsetContext (std::vector <std::string>& words, std::stringstrea
////////////////////////////////////////////////////////////////////////////////
CmdCompletionContext::CmdCompletionContext ()
{
_keyword = "_context";
_usage = "task _context";
_description = STRING_CMD_HCONTEXT_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::internal;
_keyword = "_context";
_usage = "task _context";
_description = STRING_CMD_HCONTEXT_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::internal;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -37,12 +37,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdCount::CmdCount ()
{
_keyword = "count";
_usage = "task <filter> count";
_description = STRING_CMD_COUNT_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::interrogator;
_keyword = "count";
_usage = "task <filter> count";
_description = STRING_CMD_COUNT_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::interrogator;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -43,16 +43,21 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdCustom::CmdCustom (
const std::string& k,
const std::string& u,
const std::string& d)
const std::string& keyword,
const std::string& usage,
const std::string& description)
{
_keyword = k;
_usage = u;
_description = d;
_read_only = true;
_displays_id = true;
_category = Category::report;
_keyword = keyword;
_usage = usage;
_description = description;
_read_only = true;
_displays_id = true;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Category::report;
}
////////////////////////////////////////////////////////////////////////////////
@ -78,7 +83,9 @@ int CmdCustom::execute (std::string& output)
std::vector <std::string> sortOrder;
split (sortOrder, reportSort, ',');
validateSortColumns (sortOrder);
if (sortOrder.size () != 0 &&
sortOrder[0] != "none")
validateSortColumns (sortOrder);
// Add the report filter to any existing filter.
if (reportFilter != "")
@ -95,7 +102,9 @@ int CmdCustom::execute (std::string& output)
for (unsigned int i = 0; i < filtered.size (); ++i)
sequence.push_back (i);
sort_tasks (filtered, sequence, reportSort);
if (sortOrder.size () != 0 &&
sortOrder[0] != "none")
sort_tasks (filtered, sequence, reportSort);
// Configure the view.
ViewTask view;

View file

@ -39,13 +39,18 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdDelete::CmdDelete ()
{
_keyword = "delete";
_usage = "task <filter> delete <mods>";
_description = STRING_CMD_DELETE_USAGE;
_read_only = false;
_displays_id = false;
_needs_confirm = true;
_category = Command::Category::operation;
_keyword = "delete";
_usage = "task <filter> delete <mods>";
_description = STRING_CMD_DELETE_USAGE;
_read_only = false;
_displays_id = false;
_needs_confirm = true;
_needs_gc = false;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = true;
_accepts_miscellaneous = false;
_category = Command::Category::operation;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -39,12 +39,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdDenotate::CmdDenotate ()
{
_keyword = "denotate";
_usage = "task <filter> denotate <pattern>";
_description = STRING_CMD_DENO_USAGE;
_read_only = false;
_displays_id = false;
_category = Command::Category::operation;
_keyword = "denotate";
_usage = "task <filter> denotate <pattern>";
_description = STRING_CMD_DENO_USAGE;
_read_only = false;
_displays_id = false;
_needs_gc = false;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = true;
_category = Command::Category::operation;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -51,12 +51,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdDiagnostics::CmdDiagnostics ()
{
_keyword = "diagnostics";
_usage = "task diagnostics";
_description = STRING_CMD_DIAG_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::misc;
_keyword = "diagnostics";
_usage = "task diagnostics";
_description = STRING_CMD_DIAG_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::misc;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -39,12 +39,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdDone::CmdDone ()
{
_keyword = "done";
_usage = "task <filter> done <mods>";
_description = STRING_CMD_DONE_USAGE;
_read_only = false;
_displays_id = false;
_category = Command::Category::operation;
_keyword = "done";
_usage = "task <filter> done <mods>";
_description = STRING_CMD_DONE_USAGE;
_read_only = false;
_displays_id = false;
_needs_gc = false;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = true;
_accepts_miscellaneous = false;
_category = Command::Category::operation;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -39,12 +39,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdDuplicate::CmdDuplicate ()
{
_keyword = "duplicate";
_usage = "task <filter> duplicate <mods>";
_description = STRING_CMD_DUPLICATE_USAGE;
_read_only = false;
_displays_id = false;
_category = Command::Category::operation;
_keyword = "duplicate";
_usage = "task <filter> duplicate <mods>";
_description = STRING_CMD_DUPLICATE_USAGE;
_read_only = false;
_displays_id = false;
_needs_gc = false;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = true;
_accepts_miscellaneous = false;
_category = Command::Category::operation;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -48,12 +48,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdEdit::CmdEdit ()
{
_keyword = "edit";
_usage = "task <filter> edit";
_description = STRING_CMD_EDIT_USAGE;
_read_only = false;
_displays_id = false;
_category = Command::Category::operation;
_keyword = "edit";
_usage = "task <filter> edit";
_description = STRING_CMD_EDIT_USAGE;
_read_only = false;
_displays_id = false;
_needs_gc = false;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::operation;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -36,12 +36,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdExec::CmdExec ()
{
_keyword = "execute";
_usage = "task execute <external command>";
_description = STRING_CMD_EXEC_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::misc;
_keyword = "execute";
_usage = "task execute <external command>";
_description = STRING_CMD_EXEC_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = true;
_category = Command::Category::misc;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -36,12 +36,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdExport::CmdExport ()
{
_keyword = "export";
_usage = "task <filter> export";
_description = STRING_CMD_EXPORT_USAGE;
_read_only = true;
_displays_id = true;
_category = Command::Category::migration;
_keyword = "export";
_usage = "task <filter> export";
_description = STRING_CMD_EXPORT_USAGE;
_read_only = true;
_displays_id = true;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::migration;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -37,12 +37,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdGet::CmdGet ()
{
_keyword = "_get";
_usage = "task _get <DOM> [<DOM> ...]";
_description = STRING_CMD_GET_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::internal;
_keyword = "_get";
_usage = "task _get <DOM> [<DOM> ...]";
_description = STRING_CMD_GET_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = true;
_category = Command::Category::internal;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -39,12 +39,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdHelp::CmdHelp ()
{
_keyword = "help";
_usage = "task help";
_description = STRING_CMD_HELP_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::misc;
_keyword = "help";
_usage = "task help";
_description = STRING_CMD_HELP_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::misc;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -39,12 +39,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdHistoryMonthly::CmdHistoryMonthly ()
{
_keyword = "history.monthly";
_usage = "task <filter> history.monthly";
_description = STRING_CMD_HISTORY_USAGE_M;
_read_only = true;
_displays_id = false;
_category = Command::Category::graphs;
_keyword = "history.monthly";
_usage = "task <filter> history.monthly";
_description = STRING_CMD_HISTORY_USAGE_M;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::graphs;
}
////////////////////////////////////////////////////////////////////////////////
@ -197,12 +202,17 @@ int CmdHistoryMonthly::execute (std::string& output)
////////////////////////////////////////////////////////////////////////////////
CmdHistoryAnnual::CmdHistoryAnnual ()
{
_keyword = "history.annual";
_usage = "task <filter> history.annual";
_description = STRING_CMD_HISTORY_USAGE_A;
_read_only = true;
_displays_id = false;
_category = Command::Category::graphs;
_keyword = "history.annual";
_usage = "task <filter> history.annual";
_description = STRING_CMD_HISTORY_USAGE_A;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::graphs;
}
////////////////////////////////////////////////////////////////////////////////
@ -351,12 +361,17 @@ int CmdHistoryAnnual::execute (std::string& output)
////////////////////////////////////////////////////////////////////////////////
CmdGHistoryMonthly::CmdGHistoryMonthly ()
{
_keyword = "ghistory.monthly";
_usage = "task <filter> ghistory.monthly";
_description = STRING_CMD_GHISTORY_USAGE_M;
_read_only = true;
_displays_id = false;
_category = Command::Category::graphs;
_keyword = "ghistory.monthly";
_usage = "task <filter> ghistory.monthly";
_description = STRING_CMD_GHISTORY_USAGE_M;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::graphs;
}
////////////////////////////////////////////////////////////////////////////////
@ -546,12 +561,17 @@ int CmdGHistoryMonthly::execute (std::string& output)
////////////////////////////////////////////////////////////////////////////////
CmdGHistoryAnnual::CmdGHistoryAnnual ()
{
_keyword = "ghistory.annual";
_usage = "task <filter> ghistory.annual";
_description = STRING_CMD_GHISTORY_USAGE_A;
_read_only = true;
_displays_id = false;
_category = Command::Category::graphs;
_keyword = "ghistory.annual";
_usage = "task <filter> ghistory.annual";
_description = STRING_CMD_GHISTORY_USAGE_A;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::graphs;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -41,12 +41,17 @@ std::string zshColonReplacement = ",";
////////////////////////////////////////////////////////////////////////////////
CmdIDs::CmdIDs ()
{
_keyword = "ids";
_usage = "task <filter> ids";
_description = STRING_CMD_IDS_USAGE_RANGE;
_read_only = true;
_displays_id = true;
_category = Command::Category::interrogator;
_keyword = "ids";
_usage = "task <filter> ids";
_description = STRING_CMD_IDS_USAGE_RANGE;
_read_only = true;
_displays_id = true;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::interrogator;
}
////////////////////////////////////////////////////////////////////////////////
@ -129,12 +134,17 @@ std::string CmdIDs::compressIds (const std::vector <int>& ids)
////////////////////////////////////////////////////////////////////////////////
CmdCompletionIds::CmdCompletionIds ()
{
_keyword = "_ids";
_usage = "task <filter> _ids";
_description = STRING_CMD_IDS_USAGE_LIST;
_read_only = true;
_displays_id = true;
_category = Command::Category::internal;
_keyword = "_ids";
_usage = "task <filter> _ids";
_description = STRING_CMD_IDS_USAGE_LIST;
_read_only = true;
_displays_id = true;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::internal;
}
////////////////////////////////////////////////////////////////////////////////
@ -163,12 +173,17 @@ int CmdCompletionIds::execute (std::string& output)
////////////////////////////////////////////////////////////////////////////////
CmdZshCompletionIds::CmdZshCompletionIds ()
{
_keyword = "_zshids";
_usage = "task <filter> _zshids";
_description = STRING_CMD_IDS_USAGE_ZSH;
_read_only = true;
_displays_id = true;
_category = Command::Category::internal;
_keyword = "_zshids";
_usage = "task <filter> _zshids";
_description = STRING_CMD_IDS_USAGE_ZSH;
_read_only = true;
_displays_id = true;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::internal;
}
////////////////////////////////////////////////////////////////////////////////
@ -198,12 +213,17 @@ int CmdZshCompletionIds::execute (std::string& output)
////////////////////////////////////////////////////////////////////////////////
CmdUUIDs::CmdUUIDs ()
{
_keyword = "uuids";
_usage = "task <filter> uuids";
_description = STRING_CMD_UUIDS_USAGE_RANGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::interrogator;
_keyword = "uuids";
_usage = "task <filter> uuids";
_description = STRING_CMD_UUIDS_USAGE_RANGE;
_read_only = true;
_displays_id = false;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::interrogator;
}
////////////////////////////////////////////////////////////////////////////////
@ -230,12 +250,17 @@ int CmdUUIDs::execute (std::string& output)
////////////////////////////////////////////////////////////////////////////////
CmdCompletionUuids::CmdCompletionUuids ()
{
_keyword = "_uuids";
_usage = "task <filter> _uuids";
_description = STRING_CMD_UUIDS_USAGE_LIST;
_read_only = true;
_displays_id = false;
_category = Command::Category::internal;
_keyword = "_uuids";
_usage = "task <filter> _uuids";
_description = STRING_CMD_UUIDS_USAGE_LIST;
_read_only = true;
_displays_id = false;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::internal;
}
////////////////////////////////////////////////////////////////////////////////
@ -262,12 +287,17 @@ int CmdCompletionUuids::execute (std::string& output)
////////////////////////////////////////////////////////////////////////////////
CmdZshCompletionUuids::CmdZshCompletionUuids ()
{
_keyword = "_zshuuids";
_usage = "task <filter> _zshuuids";
_description = STRING_CMD_UUIDS_USAGE_ZSH;
_read_only = true;
_displays_id = false;
_category = Command::Category::internal;
_keyword = "_zshuuids";
_usage = "task <filter> _zshuuids";
_description = STRING_CMD_UUIDS_USAGE_ZSH;
_read_only = true;
_displays_id = false;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::internal;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -41,12 +41,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdImport::CmdImport ()
{
_keyword = "import";
_usage = "task import [<file> ...]";
_description = STRING_CMD_IMPORT_USAGE;
_read_only = false;
_displays_id = false;
_category = Command::Category::migration;
_keyword = "import";
_usage = "task import [<file> ...]";
_description = STRING_CMD_IMPORT_USAGE;
_read_only = false;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = true;
_category = Command::Category::migration;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -43,18 +43,23 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdInfo::CmdInfo ()
{
_keyword = "information";
_usage = "task <filter> information";
_description = STRING_CMD_INFO_USAGE;
_read_only = true;
_keyword = "information";
_usage = "task <filter> information";
_description = STRING_CMD_INFO_USAGE;
_read_only = true;
// This is inaccurate, but it does prevent a GC. While this doesn't make a
// lot of sense, given that the info command shows the ID, it does mimic the
// behavior of versions prior to 2.0, which the test suite relies upon.
//
// Once the test suite is completely modified, this can be corrected.
_displays_id = false;
_category = Command::Category::interrogator;
_displays_id = false;
_needs_gc = false;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::interrogator;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -37,11 +37,16 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdLog::CmdLog ()
{
_keyword = "log";
_usage = "task log <mods>";
_description = STRING_CMD_LOG_USAGE;
_read_only = false;
_displays_id = false;
_keyword = "log";
_usage = "task log <mods>";
_description = STRING_CMD_LOG_USAGE;
_read_only = false;
_displays_id = false;
_needs_gc = false;
_uses_context = true;
_accepts_filter = false;
_accepts_modifications = true;
_accepts_miscellaneous = false;
_category = Command::Category::operation;
}

View file

@ -36,12 +36,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdLogo::CmdLogo ()
{
_keyword = "logo";
_usage = "task logo";
_description = STRING_CMD_LOGO_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::misc;
_keyword = "logo";
_usage = "task logo";
_description = STRING_CMD_LOGO_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::misc;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -39,12 +39,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdModify::CmdModify ()
{
_keyword = "modify";
_usage = "task <filter> modify <mods>";
_description = STRING_CMD_MODIFY_USAGE1;
_read_only = false;
_displays_id = false;
_category = Command::Category::operation;
_keyword = "modify";
_usage = "task <filter> modify <mods>";
_description = STRING_CMD_MODIFY_USAGE1;
_read_only = false;
_displays_id = false;
_needs_gc = false;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = true;
_accepts_miscellaneous = false;
_category = Command::Category::operation;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -39,12 +39,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdPrepend::CmdPrepend ()
{
_keyword = "prepend";
_usage = "task <filter> prepend <mods>";
_description = STRING_CMD_PREPEND_USAGE;
_read_only = false;
_displays_id = false;
_category = Command::Category::operation;
_keyword = "prepend";
_usage = "task <filter> prepend <mods>";
_description = STRING_CMD_PREPEND_USAGE;
_read_only = false;
_displays_id = false;
_needs_gc = false;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = true;
_accepts_miscellaneous = false;
_category = Command::Category::operation;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -41,12 +41,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdProjects::CmdProjects ()
{
_keyword = "projects";
_usage = "task <filter> projects";
_description = STRING_CMD_PROJECTS_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::interrogator;
_keyword = "projects";
_usage = "task <filter> projects";
_description = STRING_CMD_PROJECTS_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::interrogator;
}
////////////////////////////////////////////////////////////////////////////////
@ -162,12 +167,17 @@ int CmdProjects::execute (std::string& output)
////////////////////////////////////////////////////////////////////////////////
CmdCompletionProjects::CmdCompletionProjects ()
{
_keyword = "_projects";
_usage = "task <filter> _projects";
_description = STRING_CMD_PROJECTS_USAGE_2;
_read_only = true;
_displays_id = false;
_category = Command::Category::internal;
_keyword = "_projects";
_usage = "task <filter> _projects";
_description = STRING_CMD_PROJECTS_USAGE_2;
_read_only = true;
_displays_id = false;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::internal;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -39,12 +39,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdReports::CmdReports ()
{
_keyword = "reports";
_usage = "task reports";
_description = STRING_CMD_REPORTS_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::config;
_keyword = "reports";
_usage = "task reports";
_description = STRING_CMD_REPORTS_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::config;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -41,12 +41,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdShow::CmdShow ()
{
_keyword = "show";
_usage = "task show [all | substring]";
_description = STRING_CMD_SHOW;
_read_only = true;
_displays_id = false;
_category = Command::Category::config;
_keyword = "show";
_usage = "task show [all | substring]";
_description = STRING_CMD_SHOW;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = true;
_category = Command::Category::config;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -39,12 +39,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdStart::CmdStart ()
{
_keyword = "start";
_usage = "task <filter> start <mods>";
_description = STRING_CMD_START_USAGE;
_read_only = false;
_displays_id = false;
_category = Command::Category::operation;
_keyword = "start";
_usage = "task <filter> start <mods>";
_description = STRING_CMD_START_USAGE;
_read_only = false;
_displays_id = false;
_needs_gc = false;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = true;
_accepts_miscellaneous = false;
_category = Command::Category::operation;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -43,12 +43,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdStats::CmdStats ()
{
_keyword = "stats";
_usage = "task <filter> stats";
_description = STRING_CMD_STATS_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::interrogator;
_keyword = "stats";
_usage = "task <filter> stats";
_description = STRING_CMD_STATS_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::interrogator;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -38,12 +38,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdStop::CmdStop ()
{
_keyword = "stop";
_usage = "task <filter> stop <mods>";
_description = STRING_CMD_STOP_USAGE;
_read_only = false;
_displays_id = false;
_category = Command::Category::operation;
_keyword = "stop";
_usage = "task <filter> stop <mods>";
_description = STRING_CMD_STOP_USAGE;
_read_only = false;
_displays_id = false;
_needs_gc = false;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = true;
_accepts_miscellaneous = false;
_category = Command::Category::operation;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -43,12 +43,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdSummary::CmdSummary ()
{
_keyword = "summary";
_usage = "task <filter> summary";
_description = STRING_CMD_SUMMARY_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::graphs;
_keyword = "summary";
_usage = "task <filter> summary";
_description = STRING_CMD_SUMMARY_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::graphs;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -41,12 +41,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdSync::CmdSync ()
{
_keyword = "synchronize";
_usage = "task synchronize [initialize]";
_description = STRING_CMD_SYNC_USAGE;
_read_only = false;
_displays_id = false;
_category = Command::Category::migration;
_keyword = "synchronize";
_usage = "task synchronize [initialize]";
_description = STRING_CMD_SYNC_USAGE;
_read_only = false;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = true;
_category = Command::Category::migration;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -40,12 +40,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdTags::CmdTags ()
{
_keyword = "tags";
_usage = "task <filter> tags";
_description = STRING_CMD_TAGS_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::interrogator;
_keyword = "tags";
_usage = "task <filter> tags";
_description = STRING_CMD_TAGS_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::interrogator;
}
////////////////////////////////////////////////////////////////////////////////
@ -139,12 +144,17 @@ int CmdTags::execute (std::string& output)
////////////////////////////////////////////////////////////////////////////////
CmdCompletionTags::CmdCompletionTags ()
{
_keyword = "_tags";
_usage = "task <filter> _tags";
_description = STRING_CMD_COMTAGS_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::internal;
_keyword = "_tags";
_usage = "task <filter> _tags";
_description = STRING_CMD_COMTAGS_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::internal;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -41,12 +41,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdTimesheet::CmdTimesheet ()
{
_keyword = "timesheet";
_usage = "task timesheet [weeks]";
_description = STRING_CMD_TIMESHEET_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::graphs;
_keyword = "timesheet";
_usage = "task timesheet [weeks]";
_description = STRING_CMD_TIMESHEET_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = true;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = true;
_category = Command::Category::graphs;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -41,12 +41,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdUDAs::CmdUDAs ()
{
_keyword = "udas";
_usage = "task udas";
_description = STRING_CMD_UDAS_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::config;
_keyword = "udas";
_usage = "task udas";
_description = STRING_CMD_UDAS_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::config;
}
////////////////////////////////////////////////////////////////////////////////
@ -177,12 +182,17 @@ int CmdUDAs::execute (std::string& output)
///////////////////////////////////////////////////////////////////////////////
CmdCompletionUDAs::CmdCompletionUDAs ()
{
_keyword = "_udas";
_usage = "task _udas";
_description = STRING_CMD_UDAS_COMPL_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::internal;
_keyword = "_udas";
_usage = "task _udas";
_description = STRING_CMD_UDAS_COMPL_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::internal;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -35,12 +35,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdUndo::CmdUndo ()
{
_keyword = "undo";
_usage = "task undo";
_description = STRING_CMD_UNDO_USAGE;
_read_only = false;
_displays_id = false;
_category = Command::Category::operation;
_keyword = "undo";
_usage = "task undo";
_description = STRING_CMD_UNDO_USAGE;
_read_only = false;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::operation;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -39,12 +39,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdUnique::CmdUnique ()
{
_keyword = "_unique";
_usage = "task <filter> _unique <attribute>";
_description = STRING_CMD_UNIQUE_USAGE;
_read_only = false;
_displays_id = true;
_category = Command::Category::internal;
_keyword = "_unique";
_usage = "task <filter> _unique <attribute>";
_description = STRING_CMD_UNIQUE_USAGE;
_read_only = false;
_displays_id = true;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = true;
_category = Command::Category::internal;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -39,12 +39,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdUrgency::CmdUrgency ()
{
_keyword = "_urgency";
_usage = "task <filter> _urgency";
_description = STRING_CMD_URGENCY_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::internal;
_keyword = "_urgency";
_usage = "task <filter> _urgency";
_description = STRING_CMD_URGENCY_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = true;
_uses_context = true;
_accepts_filter = true;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::internal;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -42,12 +42,17 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdVersion::CmdVersion ()
{
_keyword = "version";
_usage = "task version";
_description = STRING_CMD_VERSION_USAGE;
_read_only = true;
_displays_id = false;
_category = Command::Category::misc;
_keyword = "version";
_usage = "task version";
_description = STRING_CMD_VERSION_USAGE;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::misc;
}
////////////////////////////////////////////////////////////////////////////////
@ -132,12 +137,17 @@ int CmdVersion::execute (std::string& output)
////////////////////////////////////////////////////////////////////////////////
CmdCompletionVersion::CmdCompletionVersion ()
{
_keyword = "_version";
_usage = "task _version";
_description = STRING_CMD_VERSION_USAGE2;
_read_only = true;
_displays_id = false;
_category = Command::Category::internal;
_keyword = "_version";
_usage = "task _version";
_description = STRING_CMD_VERSION_USAGE2;
_read_only = true;
_displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::internal;
}
////////////////////////////////////////////////////////////////////////////////