Giter Site home page Giter Site logo

drgo / samay Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nexneo/samay

0.0 3.0 0.0 344 KB

Command line Time tracking and reporting. Built using Go(programming language) and protocol buffers.

License: BSD 3-Clause "New" or "Revised" License

Go 61.33% Protocol Buffer 1.73% HTML 24.99% CSS 1.98% JavaScript 9.97%

samay's Introduction

Samay

Command line Time tracking and reporting

Why?

  • I never find time tracker that I like to use.(classical right?)
  • Terminal is always open when my laptop is open.
  • I wanted to learn Go(programming language)
  • Also wanted to learn protocol buffers.

So, here it is.

Command line based time tracker built with Go(programming language) and protocol buffers.

Samay?

Samay is a hindi word for Time.

Unique features (not so much in reality)

  • Command line based simple interface
  • Uses simple files to store data.
  • Store files in Dropbox(detects dropbox folder)
  • Reasonably fast.
  • Basic reporting (monthly)

Examples

Start/Stop timer

$ samay start -p "Project Name"
$ samay start "Project Name"
$ samay start MyProject 
...
$ samay stop -p "Project Name" -m "worked on Samay Readme"
$ samay stop MyProject 

if you don't specify -m it will open your $EDITOR to enter message and close editor to finish.

Directly log hours

$ samay entry -p "Project Name" -d 1.5h -m "worked on Samay examples"

A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300m", "1.5h" or "2h45m". Valid time units are "s", "m", "h".

$ samay entry MyProject -d 30m

Twitter style #hashtags are supported in log message, example message: "Some time spent in #project #management" that will create two tags "project" and "management" for that entry

This will open editor window to enter log message.

Reporting

$ samay report 

Report for April 2013
------------------------------
|  Project  |  Hours | Clock |
------------------------------
| Samay     |  21:12 |       |
| SY        |  12:06 |       |
| Beehive   |   3:16 |       |
| Chore     |   1:49 |  0:14 |
------------------------------

$ samay report -r 3 
(here 3 is month e.g March)

Reporting with web interface

$ samay web

This will open system web browser (on mac os x using open) and show all projects in tabbed interface.

Web interface 1 Web interface 2 Web interface 3

To add non billable hours

$ samay stop -p "Project Name" -m "worked on Samay Readme" -bill false

or

$ samay entry MyProject -d 1.5h -bill false

You can always skip -m option it will open $EDITOR

Remove project with all of its data

$ samay remove -p "Project Name"
$ samay remove MyProject

Log last 10 entries from Project

$ samay log -p Samay

or

$ samay log Samay

Caveats

  • If your Dropbox has folder named "Samay" in dropbox root, do not run this utility before renaming that folder to something else.
  • This software comes with NO WARRANTIES.

samay's People

Contributors

nexneo avatar

Watchers

James Cloos avatar  avatar  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.