timetracker

command module
v0.0.0-...-2a5cec1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2019 License: MIT Imports: 1 Imported by: 0

README

timetracker

Build Status codecov Go Report Card GoDoc

Simple CLI tool to track time for different tasks. Can be queried for total time spent within different periods (e.g. by week, month, year). Uses SQLite as storage.

Installation

go get -u github.com/martinohmann/timetracker
cd $GOPATH/src/github.com/martinohmann/timetracker
make install

Usage

$ timetracker start foo
+----+-----+---------------------+------+----------+
| ID | Tag | Start               | End  | Duration |
+----+-----+---------------------+------+----------+
|  1 | foo | 2019/01/02 17:43:29 | open |       0s |
+----+-----+---------------------+------+----------+
interval with tag "foo" started

$ timetracker stop foo
+----+-----+---------------------+---------------------+----------+
| ID | Tag | Start               | End                 | Duration |
+----+-----+---------------------+---------------------+----------+
|  1 | foo | 2019/01/02 17:43:29 | 2019/01/02 17:43:36 |       7s |
+----+-----+---------------------+---------------------+----------+
interval with ID 1 closed

$ timetracker start bar
+----+-----+---------------------+------+----------+
| ID | Tag | Start               | End  | Duration |
+----+-----+---------------------+------+----------+
|  2 | bar | 2019/01/02 17:43:43 | open |       0s |
+----+-----+---------------------+------+----------+
interval with tag "bar" started

$ timetracker show day
All intervals between 2019/01/02 00:00:00 and 2019/01/03 00:00:00
+----+-----+---------------------+---------------------+----------+
| ID | Tag | Start               | End                 | Duration |
+----+-----+---------------------+---------------------+----------+
|  1 | foo | 2019/01/02 17:43:29 | 2019/01/02 17:43:36 |       7s |
|  2 | bar | 2019/01/02 17:43:43 | open                |      20s |
+----+-----+---------------------+---------------------+----------+
|                                                Total |      27s |
+----+-----+---------------------+---------------------+----------+

Run timetracker help for all available subcommands and options.

License

The source code of this is released under the MIT License. See the bundled LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
io

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL