Giter Site home page Giter Site logo

gotrack's Introduction

gotrack

A simple CLI for tracking time, written in Go.

Warning

Not production ready—do not use! Currently, only one data point per day is supported.

Install

go install github.com/zzzFelix/gotrack@latest

Track time

  • gotrack [start time] [end time] [break duration] [date]
  • All arguments except start time are optional.
  • Examples:
    • gotrack 09:00 17:00 0:30 2023-08-22 -- Tracks time for 22nd August 2023. Start time: 9:00, end time 17:00, break duration 30 minutes. Results in a total duration of 7h30m.
    • gotrack 9 17 1 -- Tracks time for today. Start time 9:00, end time 17:00, break duration 1 hour. Results in a total duration of 7h.
    • gotrack 9 17:30 -- Tracks time for today. Start time 9:00, end time 17:30, no break. Results in a total duration of 8h30m.
    • gotrack 9 -- Tracks time for today. Start time 9:00, end time time.Now(), no break.

Print tracked time

  • gotrack print [date]
  • All arguments are optional.
  • Examples:
    • gotrack print 2023-08-22 -- Prints tracked time for 22nd August 2023.
    • gotrack print -- Prints tracked time for today.

Configure

  • Set environment variable GOTRACK_DB_PATH: Path to database, defaults to ~/gotrack where ~ gets replaced with the user's home directory (if they have one) as determined by os.user

gotrack's People

Contributors

zzzfelix avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.