Module cmd

Source
Expand description

Implementations of the commands run by the CLI

Functions§

add_comment
Add a comment line to the logfile
add_event
Add a zero duration event to the logfile
archive_year
Archive the first year from the logfile (if not the current year).
chart_daily
Create a graphical chart for each supplied day.
check_logfile
Check the logfile for any problems
current_task
Display the current task
discard_last_entry
Discard the most recent entry in the logfile.
edit
Launch the configured editor to edit the logfile.
ignore_last_entry
Mark the most recent entry as ignored
initialize
Initialize the timelog directory supplied and create a .timelogrc config file. If no directory is supplied default to ~/timelog
list_aliases
List the aliases from the config file.
list_entries
List the entries for a particular date, or today if none is supplied.
list_projects
List the projects in the logfile.
list_stack
List the items on the stack, most recent first.
pause_task
Pause the current task by placing it on the stack and stopping timing.
push_task
Start a task and saving the current entry description to the stack.
report_daily
Print the full daily report for each supplied day.
report_events
Print a report of the zero duration events for each supplied day.
report_hours
Print the hourly report for each supplied day.
report_intervals
Print a report of intervals between the zero duration events for each supplied day.
report_summary
Print the summary report for each supplied day.
reset_last_entry
Reset the datestamp on the most recent entry to now.
resume_task
Resume the previous task entry by popping it off the stack and starting that task at the current date and time.
retime_last_entry
Replace the task time on the most recent entry.
rewind_last_entry
Shift the time back the number of minutes on the most recent entry.
rewrite_last_entry
Replace the task text on the most recent entry.
stack_clear
Clear the stack
stack_drop
Clear the stack
stack_keep
Remove all but the top items on the stack
stack_top
Display the top item on the stack
start_task
Start a task. Add an entry to the logfile marked with the current date and time and the supplied task description.
stop_task
Stop a task. Add the ‘stop’ entry to the logfile marked with the current date and time.
swap_entry
Swap the current task with the top item on the stack.