lib/timetrap/cli.rb in timetrap-1.8.3.beta1 vs lib/timetrap/cli.rb in timetrap-1.8.3.beta2
- old
+ new
@@ -30,11 +30,17 @@
round_in_seconds: The duration of time to use for rounding with
the -r flag
database_file: The file path of the sqlite database
append_notes_delimiter: delimiter used when appending notes via
t edit --append
+ formatter_search_paths: an array of directories to search for user
+ defined fomatter classes
+ default_formatter: The format to use when display is invoked without a
+ `--format` option
default_command: The default command to run when calling t.
+ auto_checkout: Automatically check out of running entries when
+ you check in
* display - Display the current timesheet or a specific. Pass `all' as SHEET
to display all unarchived sheets or `full' to display archived and
unarchived sheets.
usage: t display [--ids] [--start DATE] [--end DATE] [--format FMT] [SHEET | all | full]
@@ -223,11 +229,11 @@
def backend
exec "sqlite3 #{DB_NAME}"
end
def in
- if Config['sheets_are_exclusive']
- Timer.stop_other_sheets(args['-a']).each do |checked_out_of|
+ if Config['auto_checkout']
+ Timer.stop_all(args['-a']).each do |checked_out_of|
warn "Checked out of sheet #{checked_out_of.sheet.inspect}."
end
end
Timer.start unused_args, args['-a']
warn "Checked into sheet #{Timer.current_sheet.inspect}."