taskwarrior/src/commands
Dustin J. Mitchell 20041c120e Refactor to store tags as individual attributes
Each tag is stored as `tag_<tagname>: x`.  The `x` is required because
empty attributes are treated as nonexistent.

For compatibility, the `tags` attribute is updated in sync with the
per-tag attributes.  This compatibility support may be dropped in later
versions.

Note that synchronization _updates_ use JSON format, which does not
change with this patch, and thus no compatibility issues exist.  The
synchronization _initialization_, however, uses FF4, meaning that a
sync server initialized from a version of `task` with this patch will
contain `tag_<tagname>` attributes, which will look like orphaned UDAs
to older versions.  However, as updates to tasks are synchronized via
the sync server, the updates will not contain these attributes and they
will show as "deleted" in the `task info` display on the older version.
Aside from the noise in the `task info` output, this is harmless.
2021-08-05 02:11:27 -04:00
..
CMakeLists.txt Build: C++14 support added 2018-02-16 22:04:29 -05:00
CmdAdd.cpp commands: Modify CmdAdd and CmdLog to use context 2021-04-03 15:01:39 -04:00
CmdAdd.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdAliases.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdAliases.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdAnnotate.cpp using convenience function for paying attention to verbosity tokens 2021-07-18 15:09:52 -04:00
CmdAnnotate.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdAppend.cpp using convenience function for paying attention to verbosity tokens 2021-07-18 15:09:52 -04:00
CmdAppend.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdAttributes.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdAttributes.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdBurndown.cpp clang-tidy: use auto 2021-04-23 01:39:23 -04:00
CmdBurndown.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdCalc.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdCalc.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdCalendar.cpp Added coloring of dates with scheduled tasks 2021-07-20 07:38:14 -04:00
CmdCalendar.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdColor.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdColor.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdColumns.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdColumns.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdCommands.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdCommands.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdConfig.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdConfig.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdContext.cpp compatibility: Explicitly specify template type to support older compilers 2021-04-03 15:01:39 -04:00
CmdContext.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdCount.cpp convert manual loops to std::count_if 2021-05-01 21:20:52 -04:00
CmdCount.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdCustom.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdCustom.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdDelete.cpp using convenience function for paying attention to verbosity tokens 2021-07-18 15:09:52 -04:00
CmdDelete.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdDenotate.cpp using convenience function for paying attention to verbosity tokens 2021-07-18 15:09:52 -04:00
CmdDenotate.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdDiagnostics.cpp Remove build date/time from diagnostic message 2021-06-02 19:33:39 -04:00
CmdDiagnostics.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdDone.cpp Nag based on task state before modification 2021-07-30 18:56:25 -04:00
CmdDone.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdDuplicate.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdDuplicate.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdEdit.cpp Refactor to store tags as individual attributes 2021-08-05 02:11:27 -04:00
CmdEdit.h Use str_replace from libshared 2021-01-07 22:37:04 -05:00
CmdExec.cpp CmdExec: Prevent user from executing an empty command 2021-06-10 21:44:07 -04:00
CmdExec.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdExport.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdExport.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdGet.cpp use emplace 2021-08-05 02:03:59 -04:00
CmdGet.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdHelp.cpp meta: Update various links to https 2021-03-12 07:58:04 -05:00
CmdHelp.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdHistory.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdHistory.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdIDs.cpp clang-tidy: add missing reserve calls 2021-04-23 00:22:43 -04:00
CmdIDs.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdImport.cpp clang-tidy: use auto 2021-04-23 01:39:23 -04:00
CmdImport.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdInfo.cpp Refactor to store tags as individual attributes 2021-08-05 02:11:27 -04:00
CmdInfo.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdLog.cpp commands: Modify CmdAdd and CmdLog to use context 2021-04-03 15:01:39 -04:00
CmdLog.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdLogo.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdLogo.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdModify.cpp using convenience function for paying attention to verbosity tokens 2021-07-18 15:09:52 -04:00
CmdModify.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdPrepend.cpp using convenience function for paying attention to verbosity tokens 2021-07-18 15:09:52 -04:00
CmdPrepend.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdProjects.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdProjects.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdPurge.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdPurge.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdReports.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdReports.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdShow.cpp Added coloring of dates with scheduled tasks 2021-07-20 07:38:14 -04:00
CmdShow.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdStart.cpp Nag based on task state before modification 2021-07-30 18:56:25 -04:00
CmdStart.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdStats.cpp convert manual loops to std::count_if 2021-05-01 21:20:52 -04:00
CmdStats.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdStop.cpp using convenience function for paying attention to verbosity tokens 2021-07-18 15:09:52 -04:00
CmdStop.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdSummary.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdSummary.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdSync.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdSync.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdTags.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdTags.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdTimesheet.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdTimesheet.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdUDAs.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdUDAs.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdUndo.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdUndo.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdUnique.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdUnique.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdUrgency.cpp doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdUrgency.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
CmdVersion.cpp meta: Update various links to https 2021-03-12 07:58:04 -05:00
CmdVersion.h doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
Command.cpp clang-tidy: use = default 2021-04-23 00:15:06 -04:00
Command.h clang-tidy: use = default 2021-04-23 00:15:06 -04:00