mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
DOM: New reference tw.version.
This commit is contained in:
parent
7e4dd24d86
commit
f7ab2c4b2d
5 changed files with 12 additions and 2 deletions
|
@ -53,6 +53,7 @@ extern Context context;
|
|||
// tw.args
|
||||
// tw.width
|
||||
// tw.height
|
||||
// tw.version
|
||||
//
|
||||
// System:
|
||||
// context.program // 2017-02-25 Deprecated in 2.6.0
|
||||
|
@ -137,6 +138,12 @@ bool getDOM (const std::string& name, Variant& value)
|
|||
return true;
|
||||
}
|
||||
|
||||
else if (name == "tw.version")
|
||||
{
|
||||
value = Variant (VERSION);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue