timetrap 1.5.0 → 1.5.1
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.
- data/README.md +8 -1
- data/VERSION.yml +1 -1
- data/lib/timetrap/cli.rb +43 -20
- data/timetrap.gemspec +2 -2
- metadata +4 -4
data/README.md
CHANGED
@@ -198,6 +198,11 @@ Global Options
|
|
198
198
|
|
199
199
|
See `configure` command to change rounding increment from 15 minutes.
|
200
200
|
|
201
|
+
**non-interactive**
|
202
|
+
passing a ``--yes`` or ``-y`` flag will cause any command that requires
|
203
|
+
confirmation (such as ``kill``) to assume an affirmative response to any
|
204
|
+
prompt. This is useful when timetrap is used in a scripted environment.
|
205
|
+
|
201
206
|
Configuration
|
202
207
|
--------
|
203
208
|
|
@@ -206,7 +211,9 @@ See ``t configure`` for details. Currently supported options are:
|
|
206
211
|
|
207
212
|
round_in_seconds: The duration of time to use for rounding with the -r flag
|
208
213
|
|
209
|
-
database_file: The file path of the sqlite
|
214
|
+
database_file: The file path of the sqlite database
|
215
|
+
|
216
|
+
append_notes_delimiter: delimiter used when appending notes via ``t edit --append``
|
210
217
|
|
211
218
|
Bugs and Feature Requests
|
212
219
|
--------
|
data/VERSION.yml
CHANGED
data/lib/timetrap/cli.rb
CHANGED
@@ -10,16 +10,29 @@ Timetrap - Simple Time Tracking
|
|
10
10
|
|
11
11
|
Usage: #{File.basename $0} COMMAND [OPTIONS] [ARGS...]
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
COMMAND can be abbreviated. For example `t in` and `t i` are equivalent.
|
14
|
+
|
15
|
+
COMMAND is one of:
|
16
|
+
|
17
|
+
* archive - Move entries to a hidden sheet (by default named '_[SHEET]') so
|
15
18
|
they're out of the way.
|
16
19
|
usage: t archive [--start DATE] [--end DATE] [SHEET]
|
17
20
|
-s, --start <date:qs> Include entries that start on this date or later
|
18
21
|
-e, --end <date:qs> Include entries that start on this date or earlier
|
19
|
-
|
22
|
+
|
23
|
+
* backend - Open an sqlite shell to the database.
|
20
24
|
usage: t backend
|
21
|
-
|
22
|
-
*
|
25
|
+
|
26
|
+
* configure - Write out a config file. print path to config file.
|
27
|
+
usage: t configure
|
28
|
+
Currently supported options are:
|
29
|
+
round_in_seconds: The duration of time to use for rounding with
|
30
|
+
the -r flag
|
31
|
+
database_file: The file path of the sqlite database
|
32
|
+
append_notes_delimiter: delimiter used when appending notes via
|
33
|
+
t edit --append``
|
34
|
+
|
35
|
+
* display - Display the current timesheet or a specific. Pass `all' as
|
23
36
|
SHEET to display all sheets.
|
24
37
|
usage: t display [--ids] [--start DATE] [--end DATE] [--format FMT] [SHEET | all]
|
25
38
|
-v, --ids Print database ids (for use with edit)
|
@@ -27,7 +40,8 @@ where COMMAND is one of:
|
|
27
40
|
-e, --end <date:qs> Include entries that start on this date or earlier
|
28
41
|
-f, --format <format> The output format. Currently supports ical, csv, and
|
29
42
|
text (default).
|
30
|
-
|
43
|
+
|
44
|
+
* edit - Alter an entry's note, start, or end time. Defaults to the active entry.
|
31
45
|
usage: t edit [--id ID] [--start TIME] [--end TIME] [--append] [NOTES]
|
32
46
|
-i, --id <id:i> Alter entry with id <id> instead of the running entry
|
33
47
|
-s, --start <time:qs> Change the start time to <time>
|
@@ -35,33 +49,42 @@ where COMMAND is one of:
|
|
35
49
|
-z, --append Append to the current note instead of replacing it
|
36
50
|
the delimiter between appended notes is
|
37
51
|
configurable (see configure)
|
38
|
-
|
39
|
-
*
|
52
|
+
|
53
|
+
* format - Deprecated: alias for display.
|
54
|
+
|
55
|
+
* in - Start the timer for the current timesheet.
|
40
56
|
usage: t in [--at TIME] [NOTES]
|
41
57
|
-a, --at <time:qs> Use this time instead of now
|
42
|
-
|
58
|
+
|
59
|
+
* kill - Delete a timesheet or an entry.
|
43
60
|
usage: t kill [--id ID] [TIMESHEET]
|
44
61
|
-i, --id <id:i> Alter entry with id <id> instead of the running entry
|
45
|
-
|
62
|
+
|
63
|
+
* list - Show the available timesheets.
|
46
64
|
usage: t list
|
47
|
-
|
65
|
+
|
66
|
+
* now - Show the status of the current timesheet.
|
48
67
|
usage: t now
|
49
|
-
|
68
|
+
|
69
|
+
* out - Stop the timer for the current timesheet.
|
50
70
|
usage: t out [--at TIME]
|
51
71
|
-a, --at <time:qs> Use this time instead of now
|
52
|
-
|
72
|
+
|
73
|
+
* running - Show all running timesheets.
|
53
74
|
usage: t running
|
54
|
-
|
75
|
+
|
76
|
+
* switch - Switch to a new timesheet.
|
55
77
|
usage: t switch TIMESHEET
|
56
|
-
|
78
|
+
|
79
|
+
* week - Shortcut for display with start date set to monday of this week.
|
57
80
|
usage: t week [--ids] [--end DATE] [--format FMT] [SHEET | all]
|
58
81
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
82
|
+
OTHER OPTIONS
|
83
|
+
-h, --help Display this help.
|
84
|
+
-r, --round Round output to 15 minute start and end times.
|
85
|
+
-y, --yes Noninteractive, assume yes as answer to all prompts.
|
63
86
|
|
64
|
-
|
87
|
+
Submit bugs and feature requests to http://github.com/samg/timetrap/issues
|
65
88
|
EOF
|
66
89
|
|
67
90
|
def parse arguments
|
data/timetrap.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{timetrap}
|
8
|
-
s.version = "1.5.
|
8
|
+
s.version = "1.5.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Sam Goldstein"]
|
12
|
-
s.date = %q{2010-10-
|
12
|
+
s.date = %q{2010-10-31}
|
13
13
|
s.default_executable = %q{t}
|
14
14
|
s.description = %q{Command line time tracker}
|
15
15
|
s.email = %q{sgrock@gmail.com}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timetrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 1.5.
|
9
|
+
- 1
|
10
|
+
version: 1.5.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sam Goldstein
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-31 00:00:00 -07:00
|
19
19
|
default_executable: t
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|