Module timelog::cli::cmd

source · []
Expand description

Implementations of the commands run by the CLI

Functions

Add a comment line to the logfile

Add a zero duration event to the logfile

Archive the first year from the logfile (if not the current year).

Create a graphical chart for each supplied day.

Check the logfile for any problems

Display the current task

Discard the most recent entry in the logfile.

Launch the configured editor to edit the logfile.

Mark the most recent entry as ignored

Initialize the timelog directory supplied and create a .timelogrc config file. If no directory is supplied default to ~/timelog

List the aliases from the config file.

List the entries for a particular date, or today if none is supplied.

List the projects in the logfile.

List the items on the stack, most recent first.

Pause the current task by placing it on the stack and stopping timing.

Start a task and saving the current entry description to the stack.

Print the full daily report for each supplied day.

Print a report of the zero duration events for each supplied day.

Print the hourly report for each supplied day.

Print the summary report for each supplied day.

Reset the datestamp on the most recent entry to now.

Resume the previous task entry by popping it off the stack and starting that task at the current date and time.

Replace the task text on the most recent entry.

Clear the stack

Clear the stack

Remove all but the top items on the stack

Start a task. Add an entry to the logfile marked with the current date and time and the supplied task description.

Stop a task. Add the ‘stop’ entry to the logfile marked with the current date and time.

Swap the current task with the top item on the stack.