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 () CmdAdd::CmdAdd ()
{ {
_keyword = "add"; _keyword = "add";
_usage = "task add <mods>"; _usage = "task add <mods>";
_description = STRING_CMD_ADD_USAGE; _description = STRING_CMD_ADD_USAGE;
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_category = Command::Category::operation; _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 () CmdCompletionAliases::CmdCompletionAliases ()
{ {
_keyword = "_aliases"; _keyword = "_aliases";
_usage = "task _aliases"; _usage = "task _aliases";
_description = STRING_CMD_ALIASES_USAGE; _description = STRING_CMD_ALIASES_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::internal; _category = Command::Category::internal;
} }

View file

@ -39,12 +39,17 @@ extern Context context;
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
CmdAnnotate::CmdAnnotate () CmdAnnotate::CmdAnnotate ()
{ {
_keyword = "annotate"; _keyword = "annotate";
_usage = "task <filter> annotate <mods>"; _usage = "task <filter> annotate <mods>";
_description = STRING_CMD_ANNO_USAGE; _description = STRING_CMD_ANNO_USAGE;
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_category = Command::Category::operation; _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 () CmdAppend::CmdAppend ()
{ {
_keyword = "append"; _keyword = "append";
_usage = "task <filter> append <mods>"; _usage = "task <filter> append <mods>";
_description = STRING_CMD_APPEND_USAGE; _description = STRING_CMD_APPEND_USAGE;
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_category = Command::Category::operation; _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 () CmdZshAttributes::CmdZshAttributes ()
{ {
_keyword = "_zshattributes"; _keyword = "_zshattributes";
_usage = "task _zshattributes"; _usage = "task _zshattributes";
_description = STRING_CMD_ZSHATTS_USAGE; _description = STRING_CMD_ZSHATTS_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::internal; _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 () CmdBurndownMonthly::CmdBurndownMonthly ()
{ {
_keyword = "burndown.monthly"; _keyword = "burndown.monthly";
_usage = "task <filter> burndown.monthly"; _usage = "task <filter> burndown.monthly";
_description = STRING_CMD_BURN_USAGE_M; _description = STRING_CMD_BURN_USAGE_M;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::graphs; _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 () CmdBurndownWeekly::CmdBurndownWeekly ()
{ {
_keyword = "burndown.weekly"; _keyword = "burndown.weekly";
_usage = "task <filter> burndown.weekly"; _usage = "task <filter> burndown.weekly";
_description = STRING_CMD_BURN_USAGE_W; _description = STRING_CMD_BURN_USAGE_W;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::graphs; _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 () CmdBurndownDaily::CmdBurndownDaily ()
{ {
_keyword = "burndown.daily"; _keyword = "burndown.daily";
_usage = "task <filter> burndown.daily"; _usage = "task <filter> burndown.daily";
_description = STRING_CMD_BURN_USAGE_D; _description = STRING_CMD_BURN_USAGE_D;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::graphs; _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 () CmdCalc::CmdCalc ()
{ {
_keyword = "calc"; _keyword = "calc";
_usage = "task calc <expression>"; _usage = "task calc <expression>";
_description = STRING_CMD_CALC_USAGE; _description = STRING_CMD_CALC_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::misc; _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 () CmdCalendar::CmdCalendar ()
{ {
_keyword = "calendar"; _keyword = "calendar";
_usage = "task calendar [due|<month> <year>|<year>] [y]"; _usage = "task calendar [due|<month> <year>|<year>] [y]";
_description = STRING_CMD_CAL_USAGE; _description = STRING_CMD_CAL_USAGE;
_read_only = true; _read_only = true;
_displays_id = true; _displays_id = true;
_category = Command::Category::graphs; _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 () CmdColor::CmdColor ()
{ {
_keyword = "colors"; _keyword = "colors";
_usage = "task colors [sample | legend]"; _usage = "task colors [sample | legend]";
_description = STRING_CMD_COLOR_USAGE; _description = STRING_CMD_COLOR_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::misc; _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 () CmdColumns::CmdColumns ()
{ {
_keyword = "columns"; _keyword = "columns";
_usage = "task columns [substring]"; _usage = "task columns [substring]";
_description = STRING_CMD_COLUMNS_USAGE; _description = STRING_CMD_COLUMNS_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::config; _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 () CmdCompletionColumns::CmdCompletionColumns ()
{ {
_keyword = "_columns"; _keyword = "_columns";
_usage = "task _columns"; _usage = "task _columns";
_description = STRING_CMD_COLUMNS_USAGE2; _description = STRING_CMD_COLUMNS_USAGE2;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::internal; _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 () CmdConfig::CmdConfig ()
{ {
_keyword = "config"; _keyword = "config";
_usage = "task config [name [value | '']]"; _usage = "task config [name [value | '']]";
_description = STRING_CMD_CONFIG_USAGE; _description = STRING_CMD_CONFIG_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::config; _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 () CmdCompletionConfig::CmdCompletionConfig ()
{ {
_keyword = "_config"; _keyword = "_config";
_usage = "task _config"; _usage = "task _config";
_description = STRING_CMD_HCONFIG_USAGE; _description = STRING_CMD_HCONFIG_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::internal; _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 () CmdContext::CmdContext ()
{ {
_keyword = "context"; _keyword = "context";
_usage = "task context [<name> | subcommand]"; _usage = "task context [<name> | subcommand]";
_description = STRING_CMD_CONTEXT_USAGE; _description = STRING_CMD_CONTEXT_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::context; _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 () CmdCompletionContext::CmdCompletionContext ()
{ {
_keyword = "_context"; _keyword = "_context";
_usage = "task _context"; _usage = "task _context";
_description = STRING_CMD_HCONTEXT_USAGE; _description = STRING_CMD_HCONTEXT_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::internal; _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 () CmdCount::CmdCount ()
{ {
_keyword = "count"; _keyword = "count";
_usage = "task <filter> count"; _usage = "task <filter> count";
_description = STRING_CMD_COUNT_USAGE; _description = STRING_CMD_COUNT_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::interrogator; _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 ( CmdCustom::CmdCustom (
const std::string& k, const std::string& keyword,
const std::string& u, const std::string& usage,
const std::string& d) const std::string& description)
{ {
_keyword = k; _keyword = keyword;
_usage = u; _usage = usage;
_description = d; _description = description;
_read_only = true; _read_only = true;
_displays_id = true; _displays_id = true;
_category = Category::report; _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; std::vector <std::string> sortOrder;
split (sortOrder, reportSort, ','); split (sortOrder, reportSort, ',');
validateSortColumns (sortOrder); if (sortOrder.size () != 0 &&
sortOrder[0] != "none")
validateSortColumns (sortOrder);
// Add the report filter to any existing filter. // Add the report filter to any existing filter.
if (reportFilter != "") if (reportFilter != "")
@ -95,7 +102,9 @@ int CmdCustom::execute (std::string& output)
for (unsigned int i = 0; i < filtered.size (); ++i) for (unsigned int i = 0; i < filtered.size (); ++i)
sequence.push_back (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. // Configure the view.
ViewTask view; ViewTask view;

View file

@ -39,13 +39,18 @@ extern Context context;
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
CmdDelete::CmdDelete () CmdDelete::CmdDelete ()
{ {
_keyword = "delete"; _keyword = "delete";
_usage = "task <filter> delete <mods>"; _usage = "task <filter> delete <mods>";
_description = STRING_CMD_DELETE_USAGE; _description = STRING_CMD_DELETE_USAGE;
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_needs_confirm = true; _needs_confirm = true;
_category = Command::Category::operation; _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 () CmdDenotate::CmdDenotate ()
{ {
_keyword = "denotate"; _keyword = "denotate";
_usage = "task <filter> denotate <pattern>"; _usage = "task <filter> denotate <pattern>";
_description = STRING_CMD_DENO_USAGE; _description = STRING_CMD_DENO_USAGE;
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_category = Command::Category::operation; _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 () CmdDiagnostics::CmdDiagnostics ()
{ {
_keyword = "diagnostics"; _keyword = "diagnostics";
_usage = "task diagnostics"; _usage = "task diagnostics";
_description = STRING_CMD_DIAG_USAGE; _description = STRING_CMD_DIAG_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::misc; _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 () CmdDone::CmdDone ()
{ {
_keyword = "done"; _keyword = "done";
_usage = "task <filter> done <mods>"; _usage = "task <filter> done <mods>";
_description = STRING_CMD_DONE_USAGE; _description = STRING_CMD_DONE_USAGE;
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_category = Command::Category::operation; _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 () CmdDuplicate::CmdDuplicate ()
{ {
_keyword = "duplicate"; _keyword = "duplicate";
_usage = "task <filter> duplicate <mods>"; _usage = "task <filter> duplicate <mods>";
_description = STRING_CMD_DUPLICATE_USAGE; _description = STRING_CMD_DUPLICATE_USAGE;
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_category = Command::Category::operation; _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 () CmdEdit::CmdEdit ()
{ {
_keyword = "edit"; _keyword = "edit";
_usage = "task <filter> edit"; _usage = "task <filter> edit";
_description = STRING_CMD_EDIT_USAGE; _description = STRING_CMD_EDIT_USAGE;
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_category = Command::Category::operation; _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 () CmdExec::CmdExec ()
{ {
_keyword = "execute"; _keyword = "execute";
_usage = "task execute <external command>"; _usage = "task execute <external command>";
_description = STRING_CMD_EXEC_USAGE; _description = STRING_CMD_EXEC_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::misc; _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 () CmdExport::CmdExport ()
{ {
_keyword = "export"; _keyword = "export";
_usage = "task <filter> export"; _usage = "task <filter> export";
_description = STRING_CMD_EXPORT_USAGE; _description = STRING_CMD_EXPORT_USAGE;
_read_only = true; _read_only = true;
_displays_id = true; _displays_id = true;
_category = Command::Category::migration; _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 () CmdGet::CmdGet ()
{ {
_keyword = "_get"; _keyword = "_get";
_usage = "task _get <DOM> [<DOM> ...]"; _usage = "task _get <DOM> [<DOM> ...]";
_description = STRING_CMD_GET_USAGE; _description = STRING_CMD_GET_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::internal; _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 () CmdHelp::CmdHelp ()
{ {
_keyword = "help"; _keyword = "help";
_usage = "task help"; _usage = "task help";
_description = STRING_CMD_HELP_USAGE; _description = STRING_CMD_HELP_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::misc; _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 () CmdHistoryMonthly::CmdHistoryMonthly ()
{ {
_keyword = "history.monthly"; _keyword = "history.monthly";
_usage = "task <filter> history.monthly"; _usage = "task <filter> history.monthly";
_description = STRING_CMD_HISTORY_USAGE_M; _description = STRING_CMD_HISTORY_USAGE_M;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::graphs; _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 () CmdHistoryAnnual::CmdHistoryAnnual ()
{ {
_keyword = "history.annual"; _keyword = "history.annual";
_usage = "task <filter> history.annual"; _usage = "task <filter> history.annual";
_description = STRING_CMD_HISTORY_USAGE_A; _description = STRING_CMD_HISTORY_USAGE_A;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::graphs; _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 () CmdGHistoryMonthly::CmdGHistoryMonthly ()
{ {
_keyword = "ghistory.monthly"; _keyword = "ghistory.monthly";
_usage = "task <filter> ghistory.monthly"; _usage = "task <filter> ghistory.monthly";
_description = STRING_CMD_GHISTORY_USAGE_M; _description = STRING_CMD_GHISTORY_USAGE_M;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::graphs; _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 () CmdGHistoryAnnual::CmdGHistoryAnnual ()
{ {
_keyword = "ghistory.annual"; _keyword = "ghistory.annual";
_usage = "task <filter> ghistory.annual"; _usage = "task <filter> ghistory.annual";
_description = STRING_CMD_GHISTORY_USAGE_A; _description = STRING_CMD_GHISTORY_USAGE_A;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::graphs; _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 () CmdIDs::CmdIDs ()
{ {
_keyword = "ids"; _keyword = "ids";
_usage = "task <filter> ids"; _usage = "task <filter> ids";
_description = STRING_CMD_IDS_USAGE_RANGE; _description = STRING_CMD_IDS_USAGE_RANGE;
_read_only = true; _read_only = true;
_displays_id = true; _displays_id = true;
_category = Command::Category::interrogator; _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 () CmdCompletionIds::CmdCompletionIds ()
{ {
_keyword = "_ids"; _keyword = "_ids";
_usage = "task <filter> _ids"; _usage = "task <filter> _ids";
_description = STRING_CMD_IDS_USAGE_LIST; _description = STRING_CMD_IDS_USAGE_LIST;
_read_only = true; _read_only = true;
_displays_id = true; _displays_id = true;
_category = Command::Category::internal; _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 () CmdZshCompletionIds::CmdZshCompletionIds ()
{ {
_keyword = "_zshids"; _keyword = "_zshids";
_usage = "task <filter> _zshids"; _usage = "task <filter> _zshids";
_description = STRING_CMD_IDS_USAGE_ZSH; _description = STRING_CMD_IDS_USAGE_ZSH;
_read_only = true; _read_only = true;
_displays_id = true; _displays_id = true;
_category = Command::Category::internal; _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 () CmdUUIDs::CmdUUIDs ()
{ {
_keyword = "uuids"; _keyword = "uuids";
_usage = "task <filter> uuids"; _usage = "task <filter> uuids";
_description = STRING_CMD_UUIDS_USAGE_RANGE; _description = STRING_CMD_UUIDS_USAGE_RANGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::interrogator; _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 () CmdCompletionUuids::CmdCompletionUuids ()
{ {
_keyword = "_uuids"; _keyword = "_uuids";
_usage = "task <filter> _uuids"; _usage = "task <filter> _uuids";
_description = STRING_CMD_UUIDS_USAGE_LIST; _description = STRING_CMD_UUIDS_USAGE_LIST;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::internal; _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 () CmdZshCompletionUuids::CmdZshCompletionUuids ()
{ {
_keyword = "_zshuuids"; _keyword = "_zshuuids";
_usage = "task <filter> _zshuuids"; _usage = "task <filter> _zshuuids";
_description = STRING_CMD_UUIDS_USAGE_ZSH; _description = STRING_CMD_UUIDS_USAGE_ZSH;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::internal; _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 () CmdImport::CmdImport ()
{ {
_keyword = "import"; _keyword = "import";
_usage = "task import [<file> ...]"; _usage = "task import [<file> ...]";
_description = STRING_CMD_IMPORT_USAGE; _description = STRING_CMD_IMPORT_USAGE;
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_category = Command::Category::migration; _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 () CmdInfo::CmdInfo ()
{ {
_keyword = "information"; _keyword = "information";
_usage = "task <filter> information"; _usage = "task <filter> information";
_description = STRING_CMD_INFO_USAGE; _description = STRING_CMD_INFO_USAGE;
_read_only = true; _read_only = true;
// This is inaccurate, but it does prevent a GC. While this doesn't make a // 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 // 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. // behavior of versions prior to 2.0, which the test suite relies upon.
// //
// Once the test suite is completely modified, this can be corrected. // Once the test suite is completely modified, this can be corrected.
_displays_id = false; _displays_id = false;
_category = Command::Category::interrogator; _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 () CmdLog::CmdLog ()
{ {
_keyword = "log"; _keyword = "log";
_usage = "task log <mods>"; _usage = "task log <mods>";
_description = STRING_CMD_LOG_USAGE; _description = STRING_CMD_LOG_USAGE;
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_needs_gc = false;
_uses_context = true;
_accepts_filter = false;
_accepts_modifications = true;
_accepts_miscellaneous = false;
_category = Command::Category::operation; _category = Command::Category::operation;
} }

View file

@ -36,12 +36,17 @@ extern Context context;
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
CmdLogo::CmdLogo () CmdLogo::CmdLogo ()
{ {
_keyword = "logo"; _keyword = "logo";
_usage = "task logo"; _usage = "task logo";
_description = STRING_CMD_LOGO_USAGE; _description = STRING_CMD_LOGO_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::misc; _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 () CmdModify::CmdModify ()
{ {
_keyword = "modify"; _keyword = "modify";
_usage = "task <filter> modify <mods>"; _usage = "task <filter> modify <mods>";
_description = STRING_CMD_MODIFY_USAGE1; _description = STRING_CMD_MODIFY_USAGE1;
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_category = Command::Category::operation; _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 () CmdPrepend::CmdPrepend ()
{ {
_keyword = "prepend"; _keyword = "prepend";
_usage = "task <filter> prepend <mods>"; _usage = "task <filter> prepend <mods>";
_description = STRING_CMD_PREPEND_USAGE; _description = STRING_CMD_PREPEND_USAGE;
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_category = Command::Category::operation; _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 () CmdProjects::CmdProjects ()
{ {
_keyword = "projects"; _keyword = "projects";
_usage = "task <filter> projects"; _usage = "task <filter> projects";
_description = STRING_CMD_PROJECTS_USAGE; _description = STRING_CMD_PROJECTS_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::interrogator; _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 () CmdCompletionProjects::CmdCompletionProjects ()
{ {
_keyword = "_projects"; _keyword = "_projects";
_usage = "task <filter> _projects"; _usage = "task <filter> _projects";
_description = STRING_CMD_PROJECTS_USAGE_2; _description = STRING_CMD_PROJECTS_USAGE_2;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::internal; _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 () CmdReports::CmdReports ()
{ {
_keyword = "reports"; _keyword = "reports";
_usage = "task reports"; _usage = "task reports";
_description = STRING_CMD_REPORTS_USAGE; _description = STRING_CMD_REPORTS_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::config; _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 () CmdShow::CmdShow ()
{ {
_keyword = "show"; _keyword = "show";
_usage = "task show [all | substring]"; _usage = "task show [all | substring]";
_description = STRING_CMD_SHOW; _description = STRING_CMD_SHOW;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::config; _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 () CmdStart::CmdStart ()
{ {
_keyword = "start"; _keyword = "start";
_usage = "task <filter> start <mods>"; _usage = "task <filter> start <mods>";
_description = STRING_CMD_START_USAGE; _description = STRING_CMD_START_USAGE;
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_category = Command::Category::operation; _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 () CmdStats::CmdStats ()
{ {
_keyword = "stats"; _keyword = "stats";
_usage = "task <filter> stats"; _usage = "task <filter> stats";
_description = STRING_CMD_STATS_USAGE; _description = STRING_CMD_STATS_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::interrogator; _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 () CmdStop::CmdStop ()
{ {
_keyword = "stop"; _keyword = "stop";
_usage = "task <filter> stop <mods>"; _usage = "task <filter> stop <mods>";
_description = STRING_CMD_STOP_USAGE; _description = STRING_CMD_STOP_USAGE;
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_category = Command::Category::operation; _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 () CmdSummary::CmdSummary ()
{ {
_keyword = "summary"; _keyword = "summary";
_usage = "task <filter> summary"; _usage = "task <filter> summary";
_description = STRING_CMD_SUMMARY_USAGE; _description = STRING_CMD_SUMMARY_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::graphs; _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 () CmdSync::CmdSync ()
{ {
_keyword = "synchronize"; _keyword = "synchronize";
_usage = "task synchronize [initialize]"; _usage = "task synchronize [initialize]";
_description = STRING_CMD_SYNC_USAGE; _description = STRING_CMD_SYNC_USAGE;
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_category = Command::Category::migration; _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 () CmdTags::CmdTags ()
{ {
_keyword = "tags"; _keyword = "tags";
_usage = "task <filter> tags"; _usage = "task <filter> tags";
_description = STRING_CMD_TAGS_USAGE; _description = STRING_CMD_TAGS_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::interrogator; _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 () CmdCompletionTags::CmdCompletionTags ()
{ {
_keyword = "_tags"; _keyword = "_tags";
_usage = "task <filter> _tags"; _usage = "task <filter> _tags";
_description = STRING_CMD_COMTAGS_USAGE; _description = STRING_CMD_COMTAGS_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::internal; _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 () CmdTimesheet::CmdTimesheet ()
{ {
_keyword = "timesheet"; _keyword = "timesheet";
_usage = "task timesheet [weeks]"; _usage = "task timesheet [weeks]";
_description = STRING_CMD_TIMESHEET_USAGE; _description = STRING_CMD_TIMESHEET_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::graphs; _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 () CmdUDAs::CmdUDAs ()
{ {
_keyword = "udas"; _keyword = "udas";
_usage = "task udas"; _usage = "task udas";
_description = STRING_CMD_UDAS_USAGE; _description = STRING_CMD_UDAS_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::config; _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 () CmdCompletionUDAs::CmdCompletionUDAs ()
{ {
_keyword = "_udas"; _keyword = "_udas";
_usage = "task _udas"; _usage = "task _udas";
_description = STRING_CMD_UDAS_COMPL_USAGE; _description = STRING_CMD_UDAS_COMPL_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::internal; _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 () CmdUndo::CmdUndo ()
{ {
_keyword = "undo"; _keyword = "undo";
_usage = "task undo"; _usage = "task undo";
_description = STRING_CMD_UNDO_USAGE; _description = STRING_CMD_UNDO_USAGE;
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_category = Command::Category::operation; _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 () CmdUnique::CmdUnique ()
{ {
_keyword = "_unique"; _keyword = "_unique";
_usage = "task <filter> _unique <attribute>"; _usage = "task <filter> _unique <attribute>";
_description = STRING_CMD_UNIQUE_USAGE; _description = STRING_CMD_UNIQUE_USAGE;
_read_only = false; _read_only = false;
_displays_id = true; _displays_id = true;
_category = Command::Category::internal; _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 () CmdUrgency::CmdUrgency ()
{ {
_keyword = "_urgency"; _keyword = "_urgency";
_usage = "task <filter> _urgency"; _usage = "task <filter> _urgency";
_description = STRING_CMD_URGENCY_USAGE; _description = STRING_CMD_URGENCY_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::internal; _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 () CmdVersion::CmdVersion ()
{ {
_keyword = "version"; _keyword = "version";
_usage = "task version"; _usage = "task version";
_description = STRING_CMD_VERSION_USAGE; _description = STRING_CMD_VERSION_USAGE;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::misc; _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 () CmdCompletionVersion::CmdCompletionVersion ()
{ {
_keyword = "_version"; _keyword = "_version";
_usage = "task _version"; _usage = "task _version";
_description = STRING_CMD_VERSION_USAGE2; _description = STRING_CMD_VERSION_USAGE2;
_read_only = true; _read_only = true;
_displays_id = false; _displays_id = false;
_category = Command::Category::internal; _needs_gc = false;
_uses_context = false;
_accepts_filter = false;
_accepts_modifications = false;
_accepts_miscellaneous = false;
_category = Command::Category::internal;
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////