timr 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ackrc +9 -0
- data/.editorconfig +1 -0
- data/.env.example +7 -0
- data/.github/CONTRIBUTING.md +32 -0
- data/.github/ISSUE_TEMPLATE.md +13 -0
- data/.gitignore +8 -2
- data/.rdoc_options +21 -0
- data/.travis.yml +10 -7
- data/Gemfile +8 -0
- data/README.md +216 -3
- data/bin/.gitignore +2 -0
- data/bin/README.md +17 -0
- data/bin/build.sh +14 -0
- data/bin/build_api.sh +14 -0
- data/bin/build_coverage.sh +23 -0
- data/bin/build_info.sh +27 -0
- data/bin/build_man.sh +41 -0
- data/bin/clean.sh +14 -0
- data/bin/dev_setup.sh +19 -0
- data/bin/install.sh +49 -0
- data/bin/publish +38 -0
- data/bin/release.sh +35 -0
- data/bin/test.sh +19 -0
- data/bin/timr +20 -40
- data/bin/timr_bash_completion.sh +337 -0
- data/bin/uninstall.sh +24 -0
- data/lib/timr.rb +36 -8
- data/lib/timr/command/basic_command.rb +170 -0
- data/lib/timr/command/continue_command.rb +86 -0
- data/lib/timr/command/help_command.rb +137 -0
- data/lib/timr/command/log_command.rb +297 -0
- data/lib/timr/command/pause_command.rb +89 -0
- data/lib/timr/command/pop_command.rb +176 -0
- data/lib/timr/command/push_command.rb +141 -0
- data/lib/timr/command/report_command.rb +689 -0
- data/lib/timr/command/start_command.rb +172 -0
- data/lib/timr/command/status_command.rb +198 -0
- data/lib/timr/command/stop_command.rb +127 -0
- data/lib/timr/command/task_command.rb +318 -0
- data/lib/timr/command/track_command.rb +381 -0
- data/lib/timr/command/version_command.rb +18 -0
- data/lib/timr/duration.rb +159 -0
- data/lib/timr/exception/timr_error.rb +113 -0
- data/lib/timr/ext/time.rb +12 -0
- data/lib/timr/helper/datetime_helper.rb +128 -0
- data/lib/timr/helper/terminal_helper.rb +58 -0
- data/lib/timr/helper/translation_helper.rb +45 -0
- data/lib/timr/model/basic_model.rb +287 -0
- data/lib/timr/model/config.rb +48 -0
- data/lib/timr/model/foreign_id_db.rb +84 -0
- data/lib/timr/model/stack.rb +161 -0
- data/lib/timr/model/task.rb +1039 -0
- data/lib/timr/model/track.rb +589 -0
- data/lib/timr/progressbar.rb +41 -0
- data/lib/timr/simple_opt_parser.rb +230 -0
- data/lib/timr/status.rb +70 -0
- data/lib/timr/table.rb +88 -0
- data/lib/timr/timr.rb +500 -558
- data/lib/timr/version.rb +4 -15
- data/man/.gitignore +2 -0
- data/man/_footer +3 -0
- data/man/timr-continue.1 +48 -0
- data/man/timr-continue.1.ronn +39 -0
- data/man/timr-ftime.7 +77 -0
- data/man/timr-ftime.7.ronn +57 -0
- data/man/timr-log.1 +109 -0
- data/man/timr-log.1.ronn +87 -0
- data/man/timr-pause.1 +56 -0
- data/man/timr-pause.1.ronn +45 -0
- data/man/timr-pop.1 +66 -0
- data/man/timr-pop.1.ronn +53 -0
- data/man/timr-push.1 +25 -0
- data/man/timr-push.1.ronn +20 -0
- data/man/timr-report.1 +228 -0
- data/man/timr-report.1.ronn +193 -0
- data/man/timr-start.1 +100 -0
- data/man/timr-start.1.ronn +82 -0
- data/man/timr-status.1 +53 -0
- data/man/timr-status.1.ronn +42 -0
- data/man/timr-stop.1 +75 -0
- data/man/timr-stop.1.ronn +60 -0
- data/man/timr-task.1 +147 -0
- data/man/timr-task.1.ronn +115 -0
- data/man/timr-track.1 +109 -0
- data/man/timr-track.1.ronn +89 -0
- data/man/timr.1 +119 -0
- data/man/timr.1.ronn +68 -0
- data/timr.gemspec +18 -3
- data/timr.sublime-project +20 -1
- metadata +142 -23
- data/Makefile +0 -12
- data/Makefile.common +0 -56
- data/lib/timr/stack.rb +0 -81
- data/lib/timr/task.rb +0 -258
- data/lib/timr/track.rb +0 -167
- data/lib/timr/window.rb +0 -259
- data/lib/timr/window_help.rb +0 -41
- data/lib/timr/window_tasks.rb +0 -30
- data/lib/timr/window_test.rb +0 -20
- data/lib/timr/window_timeline.rb +0 -33
- data/tests/tc_stack.rb +0 -121
- data/tests/tc_task.rb +0 -190
- data/tests/tc_track.rb +0 -144
- data/tests/tc_window.rb +0 -428
- data/tests/ts_all.rb +0 -6
data/man/timr-stop.1
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "TIMR\-STOP" "1" "April 2017" "FOX21.at" "Timr Manual"
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fBtimr\-stop\fR \- Stop the current running Track\.
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
timr stop [\fIoptions\fR]
|
11
|
+
.
|
12
|
+
.SH "DESCRIPTION"
|
13
|
+
Stopps the current running Track and removes it from the Stack\. When more then one Track is on the Stack the left Tracks will not be touched\.
|
14
|
+
.
|
15
|
+
.SH "TRACK OPTIONS"
|
16
|
+
.
|
17
|
+
.TP
|
18
|
+
\-m, \-\-message \fImessage\fR
|
19
|
+
Details about what you have done\. This overwrites the message set on \fBtimr start\fR\. Use \fB\-\-edit\fR option to edit the Start Track message\.
|
20
|
+
.
|
21
|
+
.TP
|
22
|
+
\-\-edit
|
23
|
+
Edit Track Message\. The EDITOR environment variable must be set\.
|
24
|
+
.
|
25
|
+
.TP
|
26
|
+
\-\-sd, \-\-start\-date \fIdate\fR
|
27
|
+
Overwrite the Start date\. See timr\-ftime(7)\.
|
28
|
+
.
|
29
|
+
.TP
|
30
|
+
\-\-st, \-\-start\-time \fItime\fR
|
31
|
+
Overwrite the Start time\. See timr\-ftime(7)\.
|
32
|
+
.
|
33
|
+
.TP
|
34
|
+
\-\-ed, \-\-end\-date \fIdate\fR
|
35
|
+
End Date\. Default: today\. See timr\-ftime(7)\.
|
36
|
+
.
|
37
|
+
.TP
|
38
|
+
\-\-et, \-\-end\-time \fItime\fR
|
39
|
+
End Time\. This is useful when you forgot to run the Stop command\. Default: now\. See timr\-ftime(7)\.
|
40
|
+
.
|
41
|
+
.TP
|
42
|
+
\-d, \-\-date \fIdate\fR
|
43
|
+
\-\-end\-date alias\.
|
44
|
+
.
|
45
|
+
.TP
|
46
|
+
\-t, \-\-time \fItime\fR
|
47
|
+
\-\-end\-time alias\.
|
48
|
+
.
|
49
|
+
.SH "GENERAL OPTIONS"
|
50
|
+
.
|
51
|
+
.TP
|
52
|
+
\-h, \-\-help
|
53
|
+
Displays the help page\.
|
54
|
+
.
|
55
|
+
.SH "EXAMPLES"
|
56
|
+
.
|
57
|
+
.nf
|
58
|
+
|
59
|
+
timr stop
|
60
|
+
timr stop \-\-message \'Hello World\'
|
61
|
+
timr stop \-\-edit
|
62
|
+
timr stop \-\-time 17:00 \-\-message \'Hello World\'
|
63
|
+
timr stop \-\-start\-time 10:00 \-\-time 17:00 \e
|
64
|
+
\-\-message \'Hello World\'
|
65
|
+
.
|
66
|
+
.fi
|
67
|
+
.
|
68
|
+
.SH "API REFERENCE"
|
69
|
+
\fIhttps://timr\.fox21\.at/api/TheFox/Timr/Command/StopCommand\.html\fR
|
70
|
+
.
|
71
|
+
.SH "SEE ALSO"
|
72
|
+
timr\-start(1), timr\-pop(1), timr\-ftime(7)
|
73
|
+
.
|
74
|
+
.SH "TIMR"
|
75
|
+
This is part of timr(1)\.
|
@@ -0,0 +1,60 @@
|
|
1
|
+
timr-stop(1) -- Stop the current running Track.
|
2
|
+
===
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
timr stop [<options>]
|
7
|
+
|
8
|
+
## DESCRIPTION
|
9
|
+
|
10
|
+
Stopps the current running Track and removes it from the Stack. When more then one Track is on the Stack the left Tracks will not be touched.
|
11
|
+
|
12
|
+
## TRACK OPTIONS
|
13
|
+
|
14
|
+
* -m, --message <message>:
|
15
|
+
Details about what you have done. This overwrites the message set on `timr start`. Use `--edit` option to edit the Start Track message.
|
16
|
+
|
17
|
+
* --edit:
|
18
|
+
Edit Track Message. The EDITOR environment variable must be set.
|
19
|
+
|
20
|
+
* --sd, --start-date <date>:
|
21
|
+
Overwrite the Start date. See timr-ftime(7).
|
22
|
+
|
23
|
+
* --st, --start-time <time>:
|
24
|
+
Overwrite the Start time. See timr-ftime(7).
|
25
|
+
|
26
|
+
* --ed, --end-date <date>:
|
27
|
+
End Date. Default: today. See timr-ftime(7).
|
28
|
+
|
29
|
+
* --et, --end-time <time>:
|
30
|
+
End Time. This is useful when you forgot to run the Stop command. Default: now. See timr-ftime(7).
|
31
|
+
|
32
|
+
* -d, --date <date>:
|
33
|
+
--end-date alias.
|
34
|
+
|
35
|
+
* -t, --time <time>:
|
36
|
+
--end-time alias.
|
37
|
+
|
38
|
+
## GENERAL OPTIONS
|
39
|
+
|
40
|
+
* -h, --help:
|
41
|
+
Displays the help page.
|
42
|
+
|
43
|
+
## EXAMPLES
|
44
|
+
|
45
|
+
```
|
46
|
+
timr stop
|
47
|
+
timr stop --message 'Hello World'
|
48
|
+
timr stop --edit
|
49
|
+
timr stop --time 17:00 --message 'Hello World'
|
50
|
+
timr stop --start-time 10:00 --time 17:00 \
|
51
|
+
--message 'Hello World'
|
52
|
+
```
|
53
|
+
|
54
|
+
## API REFERENCE
|
55
|
+
|
56
|
+
<https://timr.fox21.at/api/TheFox/Timr/Command/StopCommand.html>
|
57
|
+
|
58
|
+
## SEE ALSO
|
59
|
+
|
60
|
+
timr-start(1), timr-pop(1), timr-ftime(7)
|
data/man/timr-task.1
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "TIMR\-TASK" "1" "April 2017" "FOX21.at" "Timr Manual"
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fBtimr\-task\fR \- Show, add, edit, or remove a Task\.
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
timr task [show] [\fIoptions\fR] [\fIid\fR|\fItask_id\fR\.\.\.]
|
11
|
+
.
|
12
|
+
.P
|
13
|
+
timr task add [\fIoptions\fR]
|
14
|
+
.
|
15
|
+
.P
|
16
|
+
timr task set [\fIoptions\fR] \fIid\fR|\fItask_id\fR
|
17
|
+
.
|
18
|
+
.P
|
19
|
+
timr task remove \fIid\fR|\fItask_id\fR\.\.\.
|
20
|
+
.
|
21
|
+
.SH "DESCRIPTION"
|
22
|
+
This command takes several subcommands\. Per default, when providing a Task ID it displays details about this specific Task\. Without any arguments it lists all Tasks\.
|
23
|
+
.
|
24
|
+
.SH "SUBCOMMANDS"
|
25
|
+
.
|
26
|
+
.TP
|
27
|
+
add
|
28
|
+
Add a new Task\.
|
29
|
+
.
|
30
|
+
.TP
|
31
|
+
set
|
32
|
+
Edit an existing Task\.
|
33
|
+
.
|
34
|
+
.TP
|
35
|
+
show
|
36
|
+
Default when not providing a specific subcommand\.
|
37
|
+
.
|
38
|
+
.TP
|
39
|
+
remove
|
40
|
+
Delete a Task, all informations about this Task and all including Tracks\. This cannot be undone\.
|
41
|
+
.
|
42
|
+
.SH "ADD/SET OPTIONS"
|
43
|
+
.
|
44
|
+
.TP
|
45
|
+
\-\-id \fIstr\fR
|
46
|
+
Your ID to identify the Task\. Not just to use the internal Task ID as \fItask_id\fR but also if you like to use your own ID\. For example, when you want to sync Timr with JIRA and use the JIRA IDs to identify Timr Tasks instead of the Timr internal IDs\. This can be any string, but MUST NOT include spaces\. Use this String for \fItask_id\fR\. This ID is also called \'Foreign ID\' by Timr (internal)\.
|
47
|
+
.
|
48
|
+
.TP
|
49
|
+
\-n, \-\-name \fIname\fR
|
50
|
+
Task Name\.
|
51
|
+
.
|
52
|
+
.TP
|
53
|
+
\-\-desc, \-\-description \fIstr\fR
|
54
|
+
Task Description\.
|
55
|
+
.
|
56
|
+
.TP
|
57
|
+
\-e, \-\-est, \-\-estimation \fItime\fR
|
58
|
+
Task Estimation\. See timr\-ftime(7)\.
|
59
|
+
.
|
60
|
+
.TP
|
61
|
+
\-b, \-\-billed
|
62
|
+
Mark Task as billed\.
|
63
|
+
.
|
64
|
+
.TP
|
65
|
+
\-\-unbilled
|
66
|
+
Mark Task as unbilled\.
|
67
|
+
.
|
68
|
+
.TP
|
69
|
+
\-r, \-\-hourly\-rate \fIfloat\fR
|
70
|
+
Set the Hourly Rate\.
|
71
|
+
.
|
72
|
+
.TP
|
73
|
+
\-\-no\-hourly\-rate
|
74
|
+
Unset Hourly Rate\.
|
75
|
+
.
|
76
|
+
.TP
|
77
|
+
\-\-fr, \-\-flat\-rate, \-\-flat
|
78
|
+
Has Task a Flat Rate?
|
79
|
+
.
|
80
|
+
.TP
|
81
|
+
\-\-no\-flat\-rate, \-\-no\-flat
|
82
|
+
Unset Flat Rate\.
|
83
|
+
.
|
84
|
+
.SH "SHOW OPTIONS"
|
85
|
+
.
|
86
|
+
.TP
|
87
|
+
\-t, \-\-tracks
|
88
|
+
Show a list of Track IDs for each Task\.
|
89
|
+
.
|
90
|
+
.SH "GENERAL OPTIONS"
|
91
|
+
.
|
92
|
+
.TP
|
93
|
+
\-h, \-\-help
|
94
|
+
Displays the help page\.
|
95
|
+
.
|
96
|
+
.SH "EXAMPLES"
|
97
|
+
.
|
98
|
+
.nf
|
99
|
+
|
100
|
+
timr task
|
101
|
+
timr task abcd12
|
102
|
+
timr task show abcd12
|
103
|
+
timr task set \-\-name \'task_x\' \-\-estimation \'2h 30m\'
|
104
|
+
timr task set \-\-billed \-\-hourly\-rate 50 \-\-flat\-rate abcd12
|
105
|
+
timr task set \-\-unbilled \-\-no\-hourly\-rate \-\-no\-flat\-rate abcd12
|
106
|
+
timr task add \-\-name \'task_z\' \-\-estimation 4h \e
|
107
|
+
\-\-hourly\-rate 50 \-\-flat\-rate
|
108
|
+
timr task add \-\-id T800 \-\-name \'Model 101\'
|
109
|
+
timr task remove T800
|
110
|
+
timr task remove abcd12
|
111
|
+
.
|
112
|
+
.fi
|
113
|
+
.
|
114
|
+
.SH "FOREIGN ID EXAMPLE"
|
115
|
+
.
|
116
|
+
.nf
|
117
|
+
|
118
|
+
timr task add \-\-id t800 \-\-name Terminator1
|
119
|
+
timr task set \-\-name Terminator2 t800
|
120
|
+
timr task remove t800
|
121
|
+
.
|
122
|
+
.fi
|
123
|
+
.
|
124
|
+
.SH "MAN UNITS"
|
125
|
+
.
|
126
|
+
.IP "\(bu" 4
|
127
|
+
8 hours are 1 man\-day\.
|
128
|
+
.
|
129
|
+
.IP "\(bu" 4
|
130
|
+
5 man\-days are 1 man\-week, and so on\.
|
131
|
+
.
|
132
|
+
.IP "" 0
|
133
|
+
.
|
134
|
+
.SH "BILLED/UNBILLED"
|
135
|
+
Set a Task as \fBbilled\fR or \fBunbilled\fR to know which Task you already billed a client\.
|
136
|
+
.
|
137
|
+
.P
|
138
|
+
If a whole Task gets billed/unbilled all Tracks are changed to billed/unbilled\. Each Track has a flag \fBis_billed\fR\.
|
139
|
+
.
|
140
|
+
.SH "API REFERENCE"
|
141
|
+
\fIhttps://timr\.fox21\.at/api/TheFox/Timr/Command/TaskCommand\.html\fR
|
142
|
+
.
|
143
|
+
.SH "SEE ALSO"
|
144
|
+
timr\-track(1), timr\-ftime(7)
|
145
|
+
.
|
146
|
+
.SH "TIMR"
|
147
|
+
This is part of timr(1)\.
|
@@ -0,0 +1,115 @@
|
|
1
|
+
timr-task(1) -- Show, add, edit, or remove a Task.
|
2
|
+
===
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
timr task [show] [<options>] [<id>|<task_id>...]
|
7
|
+
|
8
|
+
timr task add [<options>]
|
9
|
+
|
10
|
+
timr task set [<options>] <id>|<task_id>
|
11
|
+
|
12
|
+
timr task remove <id>|<task_id>...
|
13
|
+
|
14
|
+
## DESCRIPTION
|
15
|
+
|
16
|
+
This command takes several subcommands. Per default, when providing a Task ID it displays details about this specific Task. Without any arguments it lists all Tasks.
|
17
|
+
|
18
|
+
## SUBCOMMANDS
|
19
|
+
|
20
|
+
* add:
|
21
|
+
Add a new Task.
|
22
|
+
|
23
|
+
* set:
|
24
|
+
Edit an existing Task.
|
25
|
+
|
26
|
+
* show:
|
27
|
+
Default when not providing a specific subcommand.
|
28
|
+
|
29
|
+
* remove:
|
30
|
+
Delete a Task, all informations about this Task and all including Tracks. This cannot be undone.
|
31
|
+
|
32
|
+
## ADD/SET OPTIONS
|
33
|
+
|
34
|
+
* --id <str>:
|
35
|
+
Your ID to identify the Task. Not just to use the internal Task ID as <task_id> but also if you like to use your own ID. For example, when you want to sync Timr with JIRA and use the JIRA IDs to identify Timr Tasks instead of the Timr internal IDs. This can be any string, but MUST NOT include spaces. Use this String for <task_id>. This ID is also called 'Foreign ID' by Timr (internal).
|
36
|
+
|
37
|
+
* -n, --name <name>:
|
38
|
+
Task Name.
|
39
|
+
|
40
|
+
* --desc, --description <str>:
|
41
|
+
Task Description.
|
42
|
+
|
43
|
+
* -e, --est, --estimation <time>:
|
44
|
+
Task Estimation. See timr-ftime(7).
|
45
|
+
|
46
|
+
* -b, --billed:
|
47
|
+
Mark Task as billed.
|
48
|
+
|
49
|
+
* --unbilled:
|
50
|
+
Mark Task as unbilled.
|
51
|
+
|
52
|
+
* -r, --hourly-rate <float>:
|
53
|
+
Set the Hourly Rate.
|
54
|
+
|
55
|
+
* --no-hourly-rate:
|
56
|
+
Unset Hourly Rate.
|
57
|
+
|
58
|
+
* --fr, --flat-rate, --flat:
|
59
|
+
Has Task a Flat Rate?
|
60
|
+
|
61
|
+
* --no-flat-rate, --no-flat:
|
62
|
+
Unset Flat Rate.
|
63
|
+
|
64
|
+
## SHOW OPTIONS
|
65
|
+
|
66
|
+
* -t, --tracks:
|
67
|
+
Show a list of Track IDs for each Task.
|
68
|
+
|
69
|
+
## GENERAL OPTIONS
|
70
|
+
|
71
|
+
* -h, --help:
|
72
|
+
Displays the help page.
|
73
|
+
|
74
|
+
## EXAMPLES
|
75
|
+
|
76
|
+
```
|
77
|
+
timr task
|
78
|
+
timr task abcd12
|
79
|
+
timr task show abcd12
|
80
|
+
timr task set --name 'task_x' --estimation '2h 30m'
|
81
|
+
timr task set --billed --hourly-rate 50 --flat-rate abcd12
|
82
|
+
timr task set --unbilled --no-hourly-rate --no-flat-rate abcd12
|
83
|
+
timr task add --name 'task_z' --estimation 4h \
|
84
|
+
--hourly-rate 50 --flat-rate
|
85
|
+
timr task add --id T800 --name 'Model 101'
|
86
|
+
timr task remove T800
|
87
|
+
timr task remove abcd12
|
88
|
+
```
|
89
|
+
|
90
|
+
## FOREIGN ID EXAMPLE
|
91
|
+
|
92
|
+
```
|
93
|
+
timr task add --id t800 --name Terminator1
|
94
|
+
timr task set --name Terminator2 t800
|
95
|
+
timr task remove t800
|
96
|
+
```
|
97
|
+
|
98
|
+
## MAN UNITS
|
99
|
+
|
100
|
+
- 8 hours are 1 man-day.
|
101
|
+
- 5 man-days are 1 man-week, and so on.
|
102
|
+
|
103
|
+
## BILLED/UNBILLED
|
104
|
+
|
105
|
+
Set a Task as `billed` or `unbilled` to know which Task you already billed a client.
|
106
|
+
|
107
|
+
If a whole Task gets billed/unbilled all Tracks are changed to billed/unbilled. Each Track has a flag `is_billed`.
|
108
|
+
|
109
|
+
## API REFERENCE
|
110
|
+
|
111
|
+
<https://timr.fox21.at/api/TheFox/Timr/Command/TaskCommand.html>
|
112
|
+
|
113
|
+
## SEE ALSO
|
114
|
+
|
115
|
+
timr-track(1), timr-ftime(7)
|
data/man/timr-track.1
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "TIMR\-TRACK" "1" "April 2017" "FOX21.at" "Timr Manual"
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fBtimr\-track\fR \- Show, add, edit, move, or remove a Track\.
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
timr track [show] [\fIoptions\fR] \fItrack_id\fR\.\.\.
|
11
|
+
.
|
12
|
+
.P
|
13
|
+
timr track add [\fIoptions\fR]
|
14
|
+
.
|
15
|
+
.P
|
16
|
+
timr track set [\fIoptions\fR] \fItrack_id\fR
|
17
|
+
.
|
18
|
+
.P
|
19
|
+
timr track remove \fItrack_id\fR\.\.\.
|
20
|
+
.
|
21
|
+
.SH "DESCRIPTION"
|
22
|
+
This command takes several subcommands\. Per default, when providing a Track ID it displays details about this specific Track\.
|
23
|
+
.
|
24
|
+
.SH "SUBCOMMANDS"
|
25
|
+
.
|
26
|
+
.TP
|
27
|
+
add
|
28
|
+
Add a new Track\.
|
29
|
+
.
|
30
|
+
.TP
|
31
|
+
set
|
32
|
+
Edit an existing Track\. To move a Track to another Task see \fB\-\-task\fR option in section SET OPTIONS\.
|
33
|
+
.
|
34
|
+
.TP
|
35
|
+
show
|
36
|
+
Default when not providing a specific subcommand\.
|
37
|
+
.
|
38
|
+
.TP
|
39
|
+
remove
|
40
|
+
Delete a Track and all informations about this Track\. This cannot be undone\.
|
41
|
+
.
|
42
|
+
.SH "ADD/SET OPTIONS"
|
43
|
+
.
|
44
|
+
.TP
|
45
|
+
\-m, \-\-message \fImessage\fR
|
46
|
+
Track Message\. Details about what you have done\.
|
47
|
+
.
|
48
|
+
.TP
|
49
|
+
\-\-sd, \-\-start\-date \fIdate\fR
|
50
|
+
Start Date\. See timr\-ftime(7)\.
|
51
|
+
.
|
52
|
+
.TP
|
53
|
+
\-\-st, \-\-start\-time \fItime\fR
|
54
|
+
Start Time\. See timr\-ftime(7)\.
|
55
|
+
.
|
56
|
+
.TP
|
57
|
+
\-\-ed, \-\-end\-date \fIdate\fR
|
58
|
+
End Date\. See timr\-ftime(7)\.
|
59
|
+
.
|
60
|
+
.TP
|
61
|
+
\-\-et, \-\-end\-time \fItime\fR
|
62
|
+
End Time\. See timr\-ftime(7)\.
|
63
|
+
.
|
64
|
+
.TP
|
65
|
+
\-b, \-\-billed
|
66
|
+
Mark Track as billed\.
|
67
|
+
.
|
68
|
+
.TP
|
69
|
+
\-\-unbilled
|
70
|
+
Mark Track as unbilled\.
|
71
|
+
.
|
72
|
+
.SH "SET OPTIONS"
|
73
|
+
\-\-task \fItask_id\fR: Move Track to another Task\. \fItask_id\fR can also be a Foreign ID\. See timr\-task(1)\.
|
74
|
+
.
|
75
|
+
.SH "SHOW OPTIONS"
|
76
|
+
.
|
77
|
+
.TP
|
78
|
+
\-t, \-\-task
|
79
|
+
Show Task of Track\. Same as \fBtimr task <task_id>\fR\.
|
80
|
+
.
|
81
|
+
.SH "GENERAL OPTIONS"
|
82
|
+
.
|
83
|
+
.TP
|
84
|
+
\-h, \-\-help
|
85
|
+
Displays the help page\.
|
86
|
+
.
|
87
|
+
.SH "EXAMPLES"
|
88
|
+
.
|
89
|
+
.nf
|
90
|
+
|
91
|
+
timr track abcd12
|
92
|
+
timr track show abcd12
|
93
|
+
timr track set \-\-start\-date 2017\-01\-01 \-\-start\-time 10:00 \e
|
94
|
+
\-\-end\-date 2017\-01\-02 \-\-end\-time 15:30 abcd12
|
95
|
+
timr track set \-\-track xyz345 abcd12
|
96
|
+
timr track add \-\-start\-date 2017\-01\-02 \-\-start\-time 16:00 \e
|
97
|
+
\-\-end\-date 2017\-01\-02 \-\-end\-time 17:00 xyz345
|
98
|
+
timr track remove abcd12
|
99
|
+
.
|
100
|
+
.fi
|
101
|
+
.
|
102
|
+
.SH "API REFERENCE"
|
103
|
+
\fIhttps://timr\.fox21\.at/api/TheFox/Timr/Command/TrackCommand\.html\fR
|
104
|
+
.
|
105
|
+
.SH "SEE ALSO"
|
106
|
+
timr\-task(1), timr\-ftime(7)
|
107
|
+
.
|
108
|
+
.SH "TIMR"
|
109
|
+
This is part of timr(1)\.
|