From bf80c7d514bc17b9ac38dacdef6ab565cc8f2908 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 1 Aug 2015 15:56:04 -0400 Subject: [PATCH] =?UTF-8?q?Cmd*:=20Added=20command=20DNA,=20which=20will?= =?UTF-8?q?=20=D1=95oon=20drive=20functionality?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/CmdAdd.cpp | 17 ++++-- src/commands/CmdAliases.cpp | 15 +++-- src/commands/CmdAnnotate.cpp | 17 ++++-- src/commands/CmdAppend.cpp | 17 ++++-- src/commands/CmdAttributes.cpp | 17 ++++-- src/commands/CmdBurndown.cpp | 51 ++++++++++------ src/commands/CmdCalc.cpp | 17 ++++-- src/commands/CmdCalendar.cpp | 17 ++++-- src/commands/CmdColor.cpp | 17 ++++-- src/commands/CmdColumns.cpp | 34 +++++++---- src/commands/CmdConfig.cpp | 34 +++++++---- src/commands/CmdContext.cpp | 34 +++++++---- src/commands/CmdCount.cpp | 17 ++++-- src/commands/CmdCustom.cpp | 31 ++++++---- src/commands/CmdDelete.cpp | 19 +++--- src/commands/CmdDenotate.cpp | 17 ++++-- src/commands/CmdDiagnostics.cpp | 17 ++++-- src/commands/CmdDone.cpp | 17 ++++-- src/commands/CmdDuplicate.cpp | 17 ++++-- src/commands/CmdEdit.cpp | 17 ++++-- src/commands/CmdExec.cpp | 17 ++++-- src/commands/CmdExport.cpp | 17 ++++-- src/commands/CmdGet.cpp | 17 ++++-- src/commands/CmdHelp.cpp | 17 ++++-- src/commands/CmdHistory.cpp | 68 +++++++++++++-------- src/commands/CmdIDs.cpp | 102 +++++++++++++++++++++----------- src/commands/CmdImport.cpp | 17 ++++-- src/commands/CmdInfo.cpp | 17 ++++-- src/commands/CmdLog.cpp | 15 +++-- src/commands/CmdLogo.cpp | 17 ++++-- src/commands/CmdModify.cpp | 17 ++++-- src/commands/CmdPrepend.cpp | 17 ++++-- src/commands/CmdProjects.cpp | 34 +++++++---- src/commands/CmdReports.cpp | 17 ++++-- src/commands/CmdShow.cpp | 17 ++++-- src/commands/CmdStart.cpp | 17 ++++-- src/commands/CmdStats.cpp | 17 ++++-- src/commands/CmdStop.cpp | 17 ++++-- src/commands/CmdSummary.cpp | 17 ++++-- src/commands/CmdSync.cpp | 17 ++++-- src/commands/CmdTags.cpp | 34 +++++++---- src/commands/CmdTimesheet.cpp | 17 ++++-- src/commands/CmdUDAs.cpp | 34 +++++++---- src/commands/CmdUndo.cpp | 17 ++++-- src/commands/CmdUnique.cpp | 17 ++++-- src/commands/CmdUrgency.cpp | 17 ++++-- src/commands/CmdVersion.cpp | 34 +++++++---- 47 files changed, 712 insertions(+), 388 deletions(-) diff --git a/src/commands/CmdAdd.cpp b/src/commands/CmdAdd.cpp index 8a4dcfe85..a8d8f843f 100644 --- a/src/commands/CmdAdd.cpp +++ b/src/commands/CmdAdd.cpp @@ -37,12 +37,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdAdd::CmdAdd () { - _keyword = "add"; - _usage = "task add "; - _description = STRING_CMD_ADD_USAGE; - _read_only = false; - _displays_id = false; - _category = Command::Category::operation; + _keyword = "add"; + _usage = "task add "; + _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdAliases.cpp b/src/commands/CmdAliases.cpp index f7fe63889..e81a3d798 100644 --- a/src/commands/CmdAliases.cpp +++ b/src/commands/CmdAliases.cpp @@ -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; } diff --git a/src/commands/CmdAnnotate.cpp b/src/commands/CmdAnnotate.cpp index 096e72fad..7709bfc13 100644 --- a/src/commands/CmdAnnotate.cpp +++ b/src/commands/CmdAnnotate.cpp @@ -39,12 +39,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdAnnotate::CmdAnnotate () { - _keyword = "annotate"; - _usage = "task annotate "; - _description = STRING_CMD_ANNO_USAGE; - _read_only = false; - _displays_id = false; - _category = Command::Category::operation; + _keyword = "annotate"; + _usage = "task annotate "; + _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdAppend.cpp b/src/commands/CmdAppend.cpp index 72414a85d..b2db54890 100644 --- a/src/commands/CmdAppend.cpp +++ b/src/commands/CmdAppend.cpp @@ -39,12 +39,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdAppend::CmdAppend () { - _keyword = "append"; - _usage = "task append "; - _description = STRING_CMD_APPEND_USAGE; - _read_only = false; - _displays_id = false; - _category = Command::Category::operation; + _keyword = "append"; + _usage = "task append "; + _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdAttributes.cpp b/src/commands/CmdAttributes.cpp index f4a9f2444..8604736f2 100644 --- a/src/commands/CmdAttributes.cpp +++ b/src/commands/CmdAttributes.cpp @@ -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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdBurndown.cpp b/src/commands/CmdBurndown.cpp index d86e23693..6511271d2 100644 --- a/src/commands/CmdBurndown.cpp +++ b/src/commands/CmdBurndown.cpp @@ -1014,12 +1014,17 @@ unsigned Chart::burndown_size (unsigned ntasks) //////////////////////////////////////////////////////////////////////////////// CmdBurndownMonthly::CmdBurndownMonthly () { - _keyword = "burndown.monthly"; - _usage = "task burndown.monthly"; - _description = STRING_CMD_BURN_USAGE_M; - _read_only = true; - _displays_id = false; - _category = Command::Category::graphs; + _keyword = "burndown.monthly"; + _usage = "task 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 burndown.weekly"; - _description = STRING_CMD_BURN_USAGE_W; - _read_only = true; - _displays_id = false; - _category = Command::Category::graphs; + _keyword = "burndown.weekly"; + _usage = "task 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 burndown.daily"; - _description = STRING_CMD_BURN_USAGE_D; - _read_only = true; - _displays_id = false; - _category = Command::Category::graphs; + _keyword = "burndown.daily"; + _usage = "task 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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdCalc.cpp b/src/commands/CmdCalc.cpp index f3ef424a8..8549f55bb 100644 --- a/src/commands/CmdCalc.cpp +++ b/src/commands/CmdCalc.cpp @@ -37,12 +37,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdCalc::CmdCalc () { - _keyword = "calc"; - _usage = "task calc "; - _description = STRING_CMD_CALC_USAGE; - _read_only = true; - _displays_id = false; - _category = Command::Category::misc; + _keyword = "calc"; + _usage = "task calc "; + _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdCalendar.cpp b/src/commands/CmdCalendar.cpp index 69599ceff..2b0916cb3 100644 --- a/src/commands/CmdCalendar.cpp +++ b/src/commands/CmdCalendar.cpp @@ -42,12 +42,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdCalendar::CmdCalendar () { - _keyword = "calendar"; - _usage = "task calendar [due| |] [y]"; - _description = STRING_CMD_CAL_USAGE; - _read_only = true; - _displays_id = true; - _category = Command::Category::graphs; + _keyword = "calendar"; + _usage = "task calendar [due| |] [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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdColor.cpp b/src/commands/CmdColor.cpp index cf7aa4ad5..fbcf705e8 100644 --- a/src/commands/CmdColor.cpp +++ b/src/commands/CmdColor.cpp @@ -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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdColumns.cpp b/src/commands/CmdColumns.cpp index 7b926b6a2..42d5e6b87 100644 --- a/src/commands/CmdColumns.cpp +++ b/src/commands/CmdColumns.cpp @@ -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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdConfig.cpp b/src/commands/CmdConfig.cpp index c0c67b936..92558f431 100644 --- a/src/commands/CmdConfig.cpp +++ b/src/commands/CmdConfig.cpp @@ -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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdContext.cpp b/src/commands/CmdContext.cpp index 95145bbe3..60fbf3034 100644 --- a/src/commands/CmdContext.cpp +++ b/src/commands/CmdContext.cpp @@ -40,12 +40,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdContext::CmdContext () { - _keyword = "context"; - _usage = "task context [ | subcommand]"; - _description = STRING_CMD_CONTEXT_USAGE; - _read_only = true; - _displays_id = false; - _category = Command::Category::context; + _keyword = "context"; + _usage = "task context [ | 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 & 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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdCount.cpp b/src/commands/CmdCount.cpp index 7fd61df80..097d1c2c7 100644 --- a/src/commands/CmdCount.cpp +++ b/src/commands/CmdCount.cpp @@ -37,12 +37,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdCount::CmdCount () { - _keyword = "count"; - _usage = "task count"; - _description = STRING_CMD_COUNT_USAGE; - _read_only = true; - _displays_id = false; - _category = Command::Category::interrogator; + _keyword = "count"; + _usage = "task 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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdCustom.cpp b/src/commands/CmdCustom.cpp index 6a01ede6c..6eacc5922 100644 --- a/src/commands/CmdCustom.cpp +++ b/src/commands/CmdCustom.cpp @@ -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 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; diff --git a/src/commands/CmdDelete.cpp b/src/commands/CmdDelete.cpp index f99a8d3b9..df03e3c8c 100644 --- a/src/commands/CmdDelete.cpp +++ b/src/commands/CmdDelete.cpp @@ -39,13 +39,18 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdDelete::CmdDelete () { - _keyword = "delete"; - _usage = "task delete "; - _description = STRING_CMD_DELETE_USAGE; - _read_only = false; - _displays_id = false; - _needs_confirm = true; - _category = Command::Category::operation; + _keyword = "delete"; + _usage = "task delete "; + _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdDenotate.cpp b/src/commands/CmdDenotate.cpp index 8e1076721..be991cd37 100644 --- a/src/commands/CmdDenotate.cpp +++ b/src/commands/CmdDenotate.cpp @@ -39,12 +39,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdDenotate::CmdDenotate () { - _keyword = "denotate"; - _usage = "task denotate "; - _description = STRING_CMD_DENO_USAGE; - _read_only = false; - _displays_id = false; - _category = Command::Category::operation; + _keyword = "denotate"; + _usage = "task denotate "; + _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdDiagnostics.cpp b/src/commands/CmdDiagnostics.cpp index b5c05dc6c..d0cd5f288 100644 --- a/src/commands/CmdDiagnostics.cpp +++ b/src/commands/CmdDiagnostics.cpp @@ -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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdDone.cpp b/src/commands/CmdDone.cpp index 30bd73058..805c3b8c7 100644 --- a/src/commands/CmdDone.cpp +++ b/src/commands/CmdDone.cpp @@ -39,12 +39,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdDone::CmdDone () { - _keyword = "done"; - _usage = "task done "; - _description = STRING_CMD_DONE_USAGE; - _read_only = false; - _displays_id = false; - _category = Command::Category::operation; + _keyword = "done"; + _usage = "task done "; + _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdDuplicate.cpp b/src/commands/CmdDuplicate.cpp index 79e9b9dfa..3aa90449a 100644 --- a/src/commands/CmdDuplicate.cpp +++ b/src/commands/CmdDuplicate.cpp @@ -39,12 +39,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdDuplicate::CmdDuplicate () { - _keyword = "duplicate"; - _usage = "task duplicate "; - _description = STRING_CMD_DUPLICATE_USAGE; - _read_only = false; - _displays_id = false; - _category = Command::Category::operation; + _keyword = "duplicate"; + _usage = "task duplicate "; + _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdEdit.cpp b/src/commands/CmdEdit.cpp index 18da58d85..261086279 100644 --- a/src/commands/CmdEdit.cpp +++ b/src/commands/CmdEdit.cpp @@ -48,12 +48,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdEdit::CmdEdit () { - _keyword = "edit"; - _usage = "task edit"; - _description = STRING_CMD_EDIT_USAGE; - _read_only = false; - _displays_id = false; - _category = Command::Category::operation; + _keyword = "edit"; + _usage = "task 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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdExec.cpp b/src/commands/CmdExec.cpp index 41899d2fe..10e860004 100644 --- a/src/commands/CmdExec.cpp +++ b/src/commands/CmdExec.cpp @@ -36,12 +36,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdExec::CmdExec () { - _keyword = "execute"; - _usage = "task execute "; - _description = STRING_CMD_EXEC_USAGE; - _read_only = true; - _displays_id = false; - _category = Command::Category::misc; + _keyword = "execute"; + _usage = "task execute "; + _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdExport.cpp b/src/commands/CmdExport.cpp index 6fd5def3b..01ee1eec9 100644 --- a/src/commands/CmdExport.cpp +++ b/src/commands/CmdExport.cpp @@ -36,12 +36,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdExport::CmdExport () { - _keyword = "export"; - _usage = "task export"; - _description = STRING_CMD_EXPORT_USAGE; - _read_only = true; - _displays_id = true; - _category = Command::Category::migration; + _keyword = "export"; + _usage = "task 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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdGet.cpp b/src/commands/CmdGet.cpp index 48eb1a3bc..a2da1139b 100644 --- a/src/commands/CmdGet.cpp +++ b/src/commands/CmdGet.cpp @@ -37,12 +37,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdGet::CmdGet () { - _keyword = "_get"; - _usage = "task _get [ ...]"; - _description = STRING_CMD_GET_USAGE; - _read_only = true; - _displays_id = false; - _category = Command::Category::internal; + _keyword = "_get"; + _usage = "task _get [ ...]"; + _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdHelp.cpp b/src/commands/CmdHelp.cpp index 73e4b1a32..6338d2791 100644 --- a/src/commands/CmdHelp.cpp +++ b/src/commands/CmdHelp.cpp @@ -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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdHistory.cpp b/src/commands/CmdHistory.cpp index f555a16d7..335648c8d 100644 --- a/src/commands/CmdHistory.cpp +++ b/src/commands/CmdHistory.cpp @@ -39,12 +39,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdHistoryMonthly::CmdHistoryMonthly () { - _keyword = "history.monthly"; - _usage = "task history.monthly"; - _description = STRING_CMD_HISTORY_USAGE_M; - _read_only = true; - _displays_id = false; - _category = Command::Category::graphs; + _keyword = "history.monthly"; + _usage = "task 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 history.annual"; - _description = STRING_CMD_HISTORY_USAGE_A; - _read_only = true; - _displays_id = false; - _category = Command::Category::graphs; + _keyword = "history.annual"; + _usage = "task 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 ghistory.monthly"; - _description = STRING_CMD_GHISTORY_USAGE_M; - _read_only = true; - _displays_id = false; - _category = Command::Category::graphs; + _keyword = "ghistory.monthly"; + _usage = "task 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 ghistory.annual"; - _description = STRING_CMD_GHISTORY_USAGE_A; - _read_only = true; - _displays_id = false; - _category = Command::Category::graphs; + _keyword = "ghistory.annual"; + _usage = "task 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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdIDs.cpp b/src/commands/CmdIDs.cpp index 671cb5296..4c2c77f94 100644 --- a/src/commands/CmdIDs.cpp +++ b/src/commands/CmdIDs.cpp @@ -41,12 +41,17 @@ std::string zshColonReplacement = ","; //////////////////////////////////////////////////////////////////////////////// CmdIDs::CmdIDs () { - _keyword = "ids"; - _usage = "task ids"; - _description = STRING_CMD_IDS_USAGE_RANGE; - _read_only = true; - _displays_id = true; - _category = Command::Category::interrogator; + _keyword = "ids"; + _usage = "task 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 & ids) //////////////////////////////////////////////////////////////////////////////// CmdCompletionIds::CmdCompletionIds () { - _keyword = "_ids"; - _usage = "task _ids"; - _description = STRING_CMD_IDS_USAGE_LIST; - _read_only = true; - _displays_id = true; - _category = Command::Category::internal; + _keyword = "_ids"; + _usage = "task _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 _zshids"; - _description = STRING_CMD_IDS_USAGE_ZSH; - _read_only = true; - _displays_id = true; - _category = Command::Category::internal; + _keyword = "_zshids"; + _usage = "task _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 uuids"; - _description = STRING_CMD_UUIDS_USAGE_RANGE; - _read_only = true; - _displays_id = false; - _category = Command::Category::interrogator; + _keyword = "uuids"; + _usage = "task 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 _uuids"; - _description = STRING_CMD_UUIDS_USAGE_LIST; - _read_only = true; - _displays_id = false; - _category = Command::Category::internal; + _keyword = "_uuids"; + _usage = "task _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 _zshuuids"; - _description = STRING_CMD_UUIDS_USAGE_ZSH; - _read_only = true; - _displays_id = false; - _category = Command::Category::internal; + _keyword = "_zshuuids"; + _usage = "task _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdImport.cpp b/src/commands/CmdImport.cpp index 786644235..a7c0a7f4f 100644 --- a/src/commands/CmdImport.cpp +++ b/src/commands/CmdImport.cpp @@ -41,12 +41,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdImport::CmdImport () { - _keyword = "import"; - _usage = "task import [ ...]"; - _description = STRING_CMD_IMPORT_USAGE; - _read_only = false; - _displays_id = false; - _category = Command::Category::migration; + _keyword = "import"; + _usage = "task import [ ...]"; + _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdInfo.cpp b/src/commands/CmdInfo.cpp index aad4f788d..4efba6c4e 100644 --- a/src/commands/CmdInfo.cpp +++ b/src/commands/CmdInfo.cpp @@ -43,18 +43,23 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdInfo::CmdInfo () { - _keyword = "information"; - _usage = "task information"; - _description = STRING_CMD_INFO_USAGE; - _read_only = true; + _keyword = "information"; + _usage = "task 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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdLog.cpp b/src/commands/CmdLog.cpp index 809d18cfe..6c9b4f95a 100644 --- a/src/commands/CmdLog.cpp +++ b/src/commands/CmdLog.cpp @@ -37,11 +37,16 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdLog::CmdLog () { - _keyword = "log"; - _usage = "task log "; - _description = STRING_CMD_LOG_USAGE; - _read_only = false; - _displays_id = false; + _keyword = "log"; + _usage = "task log "; + _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; } diff --git a/src/commands/CmdLogo.cpp b/src/commands/CmdLogo.cpp index e1d6a8f57..dcb31965f 100644 --- a/src/commands/CmdLogo.cpp +++ b/src/commands/CmdLogo.cpp @@ -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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdModify.cpp b/src/commands/CmdModify.cpp index 4f9dff5fe..9f7d56d47 100644 --- a/src/commands/CmdModify.cpp +++ b/src/commands/CmdModify.cpp @@ -39,12 +39,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdModify::CmdModify () { - _keyword = "modify"; - _usage = "task modify "; - _description = STRING_CMD_MODIFY_USAGE1; - _read_only = false; - _displays_id = false; - _category = Command::Category::operation; + _keyword = "modify"; + _usage = "task modify "; + _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdPrepend.cpp b/src/commands/CmdPrepend.cpp index 0feff3570..e9d1596b6 100644 --- a/src/commands/CmdPrepend.cpp +++ b/src/commands/CmdPrepend.cpp @@ -39,12 +39,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdPrepend::CmdPrepend () { - _keyword = "prepend"; - _usage = "task prepend "; - _description = STRING_CMD_PREPEND_USAGE; - _read_only = false; - _displays_id = false; - _category = Command::Category::operation; + _keyword = "prepend"; + _usage = "task prepend "; + _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdProjects.cpp b/src/commands/CmdProjects.cpp index 37172ccbe..fe5380aec 100644 --- a/src/commands/CmdProjects.cpp +++ b/src/commands/CmdProjects.cpp @@ -41,12 +41,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdProjects::CmdProjects () { - _keyword = "projects"; - _usage = "task projects"; - _description = STRING_CMD_PROJECTS_USAGE; - _read_only = true; - _displays_id = false; - _category = Command::Category::interrogator; + _keyword = "projects"; + _usage = "task 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 _projects"; - _description = STRING_CMD_PROJECTS_USAGE_2; - _read_only = true; - _displays_id = false; - _category = Command::Category::internal; + _keyword = "_projects"; + _usage = "task _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdReports.cpp b/src/commands/CmdReports.cpp index af4a573ab..c34678426 100644 --- a/src/commands/CmdReports.cpp +++ b/src/commands/CmdReports.cpp @@ -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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdShow.cpp b/src/commands/CmdShow.cpp index b7b43f52c..54446abbb 100644 --- a/src/commands/CmdShow.cpp +++ b/src/commands/CmdShow.cpp @@ -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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdStart.cpp b/src/commands/CmdStart.cpp index 73a703d72..4db72bb22 100644 --- a/src/commands/CmdStart.cpp +++ b/src/commands/CmdStart.cpp @@ -39,12 +39,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdStart::CmdStart () { - _keyword = "start"; - _usage = "task start "; - _description = STRING_CMD_START_USAGE; - _read_only = false; - _displays_id = false; - _category = Command::Category::operation; + _keyword = "start"; + _usage = "task start "; + _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdStats.cpp b/src/commands/CmdStats.cpp index 67a3e42fd..313c70d8b 100644 --- a/src/commands/CmdStats.cpp +++ b/src/commands/CmdStats.cpp @@ -43,12 +43,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdStats::CmdStats () { - _keyword = "stats"; - _usage = "task stats"; - _description = STRING_CMD_STATS_USAGE; - _read_only = true; - _displays_id = false; - _category = Command::Category::interrogator; + _keyword = "stats"; + _usage = "task 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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdStop.cpp b/src/commands/CmdStop.cpp index 5751427fc..feb55a38b 100644 --- a/src/commands/CmdStop.cpp +++ b/src/commands/CmdStop.cpp @@ -38,12 +38,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdStop::CmdStop () { - _keyword = "stop"; - _usage = "task stop "; - _description = STRING_CMD_STOP_USAGE; - _read_only = false; - _displays_id = false; - _category = Command::Category::operation; + _keyword = "stop"; + _usage = "task stop "; + _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdSummary.cpp b/src/commands/CmdSummary.cpp index 4b50923f2..bfeb657db 100644 --- a/src/commands/CmdSummary.cpp +++ b/src/commands/CmdSummary.cpp @@ -43,12 +43,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdSummary::CmdSummary () { - _keyword = "summary"; - _usage = "task summary"; - _description = STRING_CMD_SUMMARY_USAGE; - _read_only = true; - _displays_id = false; - _category = Command::Category::graphs; + _keyword = "summary"; + _usage = "task 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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdSync.cpp b/src/commands/CmdSync.cpp index ef86600e8..78d6f0e86 100644 --- a/src/commands/CmdSync.cpp +++ b/src/commands/CmdSync.cpp @@ -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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdTags.cpp b/src/commands/CmdTags.cpp index fffdf64b8..85234f847 100644 --- a/src/commands/CmdTags.cpp +++ b/src/commands/CmdTags.cpp @@ -40,12 +40,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdTags::CmdTags () { - _keyword = "tags"; - _usage = "task tags"; - _description = STRING_CMD_TAGS_USAGE; - _read_only = true; - _displays_id = false; - _category = Command::Category::interrogator; + _keyword = "tags"; + _usage = "task 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 _tags"; - _description = STRING_CMD_COMTAGS_USAGE; - _read_only = true; - _displays_id = false; - _category = Command::Category::internal; + _keyword = "_tags"; + _usage = "task _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdTimesheet.cpp b/src/commands/CmdTimesheet.cpp index c6134468a..775213f69 100644 --- a/src/commands/CmdTimesheet.cpp +++ b/src/commands/CmdTimesheet.cpp @@ -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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdUDAs.cpp b/src/commands/CmdUDAs.cpp index 1738b9fb6..cfcfe0268 100644 --- a/src/commands/CmdUDAs.cpp +++ b/src/commands/CmdUDAs.cpp @@ -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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdUndo.cpp b/src/commands/CmdUndo.cpp index 87f8ef4cf..48dcd1fc2 100644 --- a/src/commands/CmdUndo.cpp +++ b/src/commands/CmdUndo.cpp @@ -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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdUnique.cpp b/src/commands/CmdUnique.cpp index c81c928f8..d4d3dc5fb 100644 --- a/src/commands/CmdUnique.cpp +++ b/src/commands/CmdUnique.cpp @@ -39,12 +39,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdUnique::CmdUnique () { - _keyword = "_unique"; - _usage = "task _unique "; - _description = STRING_CMD_UNIQUE_USAGE; - _read_only = false; - _displays_id = true; - _category = Command::Category::internal; + _keyword = "_unique"; + _usage = "task _unique "; + _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdUrgency.cpp b/src/commands/CmdUrgency.cpp index 7803f3cd2..cb853ce14 100644 --- a/src/commands/CmdUrgency.cpp +++ b/src/commands/CmdUrgency.cpp @@ -39,12 +39,17 @@ extern Context context; //////////////////////////////////////////////////////////////////////////////// CmdUrgency::CmdUrgency () { - _keyword = "_urgency"; - _usage = "task _urgency"; - _description = STRING_CMD_URGENCY_USAGE; - _read_only = true; - _displays_id = false; - _category = Command::Category::internal; + _keyword = "_urgency"; + _usage = "task _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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdVersion.cpp b/src/commands/CmdVersion.cpp index 5dc4ddb02..4cafc8375 100644 --- a/src/commands/CmdVersion.cpp +++ b/src/commands/CmdVersion.cpp @@ -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; } ////////////////////////////////////////////////////////////////////////////////