Feature - simple version report for scripts
- Added a simple _version command that displays only the version number and a newline. This makes it easier for external task support scripts to determine which version of task is installed - easier than parsing the version command output.
This commit is contained in:
@@ -110,6 +110,7 @@ void Cmd::load ()
|
||||
commands.push_back ("_commands");
|
||||
commands.push_back ("_ids");
|
||||
commands.push_back ("_config");
|
||||
commands.push_back ("_version");
|
||||
commands.push_back (context.stringtable.get (CMD_ADD, "add"));
|
||||
commands.push_back (context.stringtable.get (CMD_APPEND, "append"));
|
||||
commands.push_back (context.stringtable.get (CMD_ANNOTATE, "annotate"));
|
||||
@@ -192,6 +193,7 @@ bool Cmd::isReadOnlyCommand ()
|
||||
command == "_commands" ||
|
||||
command == "_ids" ||
|
||||
command == "_config" ||
|
||||
command == "_version" ||
|
||||
command == context.stringtable.get (CMD_CALENDAR, "calendar") ||
|
||||
command == context.stringtable.get (CMD_COLORS, "colors") ||
|
||||
command == context.stringtable.get (CMD_EXPORT, "export") ||
|
||||
|
||||
Reference in New Issue
Block a user