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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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