mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
CmdHelp: Added DOM references and 'get' command
This commit is contained in:
parent
92731c889c
commit
0c2ad32069
1 changed files with 26 additions and 0 deletions
|
@ -43,6 +43,7 @@ int CmdHelpUsage ()
|
|||
<< " timew export [<interval>] [<tag> ...]\n"
|
||||
<< " timew extensions\n"
|
||||
<< " timew gaps [<interval>] [<tag> ...]\n"
|
||||
<< " timew get <DOM> [<DOM> ...]\n"
|
||||
<< " timew help [<command> | interval | hints | date | duration]\n"
|
||||
<< " timew join @<id> @<id>\n"
|
||||
<< " timew lengthen @<id> [@<id> ...] <duration>\n"
|
||||
|
@ -67,6 +68,7 @@ int CmdHelpUsage ()
|
|||
<< " timew help hints\n"
|
||||
<< " timew help date\n"
|
||||
<< " timew help duration\n"
|
||||
<< " timew help dom\n"
|
||||
<< '\n'
|
||||
<< "Interval:\n"
|
||||
<< " [from] <date>\n"
|
||||
|
@ -358,6 +360,16 @@ int CmdHelp (const CLI& cli)
|
|||
<< "See also 'extensions'.\n"
|
||||
<< '\n';
|
||||
|
||||
// Ruler 1 2 3 4 5 6 7 8
|
||||
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
else if (words[0] == "dom")
|
||||
std::cout << '\n'
|
||||
<< "Supported DOM references are:\n"
|
||||
<< '\n'
|
||||
<< " dom.active '1' if there is active tracking, otherwise '0'\n"
|
||||
<< '\n'
|
||||
<< '\n';
|
||||
|
||||
// Ruler 1 2 3 4 5 6 7 8
|
||||
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
else if (words[0] == "export")
|
||||
|
@ -400,6 +412,20 @@ int CmdHelp (const CLI& cli)
|
|||
<< "See also 'summary'.\n"
|
||||
<< '\n';
|
||||
|
||||
// Ruler 1 2 3 4 5 6 7 8
|
||||
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
else if (words[0] == "get")
|
||||
std::cout << '\n'
|
||||
<< "Syntax: timew get <DOM> [<DOM> ...]\n"
|
||||
<< '\n'
|
||||
<< "Validates the DOM reference, then obtains the value and displays it. For example\n"
|
||||
<< '\n'
|
||||
<< " $ timew get dom.active\n"
|
||||
<< " 1\n"
|
||||
<< '\n'
|
||||
<< "See also 'dom'.\n"
|
||||
<< '\n';
|
||||
|
||||
// Ruler 1 2 3 4 5 6 7 8
|
||||
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
else if (words[0] == "help")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue