mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Cmd*: Added command DNA, which will ѕoon drive functionality
This commit is contained in:
parent
d390433ec7
commit
bf80c7d514
47 changed files with 712 additions and 388 deletions
|
@ -41,12 +41,17 @@ std::string zshColonReplacement = ",";
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
CmdIDs::CmdIDs ()
|
||||
{
|
||||
_keyword = "ids";
|
||||
_usage = "task <filter> ids";
|
||||
_description = STRING_CMD_IDS_USAGE_RANGE;
|
||||
_read_only = true;
|
||||
_displays_id = true;
|
||||
_category = Command::Category::interrogator;
|
||||
_keyword = "ids";
|
||||
_usage = "task <filter> ids";
|
||||
_description = STRING_CMD_IDS_USAGE_RANGE;
|
||||
_read_only = true;
|
||||
_displays_id = true;
|
||||
_needs_gc = true;
|
||||
_uses_context = true;
|
||||
_accepts_filter = true;
|
||||
_accepts_modifications = false;
|
||||
_accepts_miscellaneous = false;
|
||||
_category = Command::Category::interrogator;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -129,12 +134,17 @@ std::string CmdIDs::compressIds (const std::vector <int>& ids)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
CmdCompletionIds::CmdCompletionIds ()
|
||||
{
|
||||
_keyword = "_ids";
|
||||
_usage = "task <filter> _ids";
|
||||
_description = STRING_CMD_IDS_USAGE_LIST;
|
||||
_read_only = true;
|
||||
_displays_id = true;
|
||||
_category = Command::Category::internal;
|
||||
_keyword = "_ids";
|
||||
_usage = "task <filter> _ids";
|
||||
_description = STRING_CMD_IDS_USAGE_LIST;
|
||||
_read_only = true;
|
||||
_displays_id = true;
|
||||
_needs_gc = true;
|
||||
_uses_context = true;
|
||||
_accepts_filter = true;
|
||||
_accepts_modifications = false;
|
||||
_accepts_miscellaneous = false;
|
||||
_category = Command::Category::internal;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -163,12 +173,17 @@ int CmdCompletionIds::execute (std::string& output)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
CmdZshCompletionIds::CmdZshCompletionIds ()
|
||||
{
|
||||
_keyword = "_zshids";
|
||||
_usage = "task <filter> _zshids";
|
||||
_description = STRING_CMD_IDS_USAGE_ZSH;
|
||||
_read_only = true;
|
||||
_displays_id = true;
|
||||
_category = Command::Category::internal;
|
||||
_keyword = "_zshids";
|
||||
_usage = "task <filter> _zshids";
|
||||
_description = STRING_CMD_IDS_USAGE_ZSH;
|
||||
_read_only = true;
|
||||
_displays_id = true;
|
||||
_needs_gc = true;
|
||||
_uses_context = true;
|
||||
_accepts_filter = true;
|
||||
_accepts_modifications = false;
|
||||
_accepts_miscellaneous = false;
|
||||
_category = Command::Category::internal;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -198,12 +213,17 @@ int CmdZshCompletionIds::execute (std::string& output)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
CmdUUIDs::CmdUUIDs ()
|
||||
{
|
||||
_keyword = "uuids";
|
||||
_usage = "task <filter> uuids";
|
||||
_description = STRING_CMD_UUIDS_USAGE_RANGE;
|
||||
_read_only = true;
|
||||
_displays_id = false;
|
||||
_category = Command::Category::interrogator;
|
||||
_keyword = "uuids";
|
||||
_usage = "task <filter> uuids";
|
||||
_description = STRING_CMD_UUIDS_USAGE_RANGE;
|
||||
_read_only = true;
|
||||
_displays_id = false;
|
||||
_needs_gc = true;
|
||||
_uses_context = true;
|
||||
_accepts_filter = true;
|
||||
_accepts_modifications = false;
|
||||
_accepts_miscellaneous = false;
|
||||
_category = Command::Category::interrogator;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -230,12 +250,17 @@ int CmdUUIDs::execute (std::string& output)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
CmdCompletionUuids::CmdCompletionUuids ()
|
||||
{
|
||||
_keyword = "_uuids";
|
||||
_usage = "task <filter> _uuids";
|
||||
_description = STRING_CMD_UUIDS_USAGE_LIST;
|
||||
_read_only = true;
|
||||
_displays_id = false;
|
||||
_category = Command::Category::internal;
|
||||
_keyword = "_uuids";
|
||||
_usage = "task <filter> _uuids";
|
||||
_description = STRING_CMD_UUIDS_USAGE_LIST;
|
||||
_read_only = true;
|
||||
_displays_id = false;
|
||||
_needs_gc = true;
|
||||
_uses_context = true;
|
||||
_accepts_filter = true;
|
||||
_accepts_modifications = false;
|
||||
_accepts_miscellaneous = false;
|
||||
_category = Command::Category::internal;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -262,12 +287,17 @@ int CmdCompletionUuids::execute (std::string& output)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
CmdZshCompletionUuids::CmdZshCompletionUuids ()
|
||||
{
|
||||
_keyword = "_zshuuids";
|
||||
_usage = "task <filter> _zshuuids";
|
||||
_description = STRING_CMD_UUIDS_USAGE_ZSH;
|
||||
_read_only = true;
|
||||
_displays_id = false;
|
||||
_category = Command::Category::internal;
|
||||
_keyword = "_zshuuids";
|
||||
_usage = "task <filter> _zshuuids";
|
||||
_description = STRING_CMD_UUIDS_USAGE_ZSH;
|
||||
_read_only = true;
|
||||
_displays_id = false;
|
||||
_needs_gc = true;
|
||||
_uses_context = true;
|
||||
_accepts_filter = true;
|
||||
_accepts_modifications = false;
|
||||
_accepts_miscellaneous = false;
|
||||
_category = Command::Category::internal;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue