mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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:
parent
be86c52dc0
commit
2ec5a315cb
4 changed files with 14 additions and 0 deletions
|
@ -373,6 +373,16 @@ int handleCompletionConfig (std::string &outs)
|
|||
return 0;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// A simple version display for use by completion scripts and the task-update
|
||||
// script.
|
||||
int handleCompletionVersion (std::string &outs)
|
||||
{
|
||||
outs = VERSION;
|
||||
outs += "\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int handleCompletionIDs (std::string &outs)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue