mlimaloureiro / golog Goto Github PK
View Code? Open in Web Editor NEWEasy and simple CLI time tracker for your tasks
License: Apache License 2.0
Easy and simple CLI time tracker for your tasks
License: Apache License 2.0
golog switch task should:
It should error if there is more than one started task
It should not error if more no task is started
Missing deterministic test that checks when that checks this
if isActive(nextAction) {
durationInSeconds += time.Since(startTime).Seconds()
}
Starting with a preset time:
# golog start task_name 1h30m
Editing an existing timer:
# golog add task_name 1h30m
# golog remove task_name 1h30m
autocomplete for stop should not print stopped tasks
autocomplete for start should not print started tasks
Is it just me or is stop misleading?
Would it be better to have a pause/stop option, where pause "pauses" the timer and stop remove the timer and prints out the value?
Feature request. CSV would be nice too
The golog list
command shows incorrect task durations for tasks which its duration exceeds 24 hours.
~/.golog:
breakfast,start,2019-01-11T14:47:56Z
breakfast,stop,2019-01-20T17:08:47Z
> golog list
2h:20m:51s breakfast
Doesn't compile on go1.16 need to change github.com/codegangsta/cli to github.com/urfave/cli
➜ ~ go get github.com/mlimaloureiro/golog
go: downloading github.com/mlimaloureiro/golog v0.0.0-20160703122449-fcc04962f875
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/codegangsta/cli v1.22.5
go get: github.com/codegangsta/cli@none updating to
github.com/codegangsta/[email protected]: parsing go.mod:
module declares its path as: github.com/urfave/cli
but was required as: github.com/codegangsta/cli
➜ ~ go version
go version go1.16.3 darwin/amd64
golog rm should remove a task
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.