Giter Club home page Giter Club logo

clockin's Introduction

A command-line tool for tracking your working periods. Start and stop the timer with two simple commands, and then open the built-in statistical summary to identify patterns and trends!

Getting Started

Install Dependencies

A local MySQL server is required by clockin to store session data on your machine. During setup, ensure you make note of your MySQL username and password and copy them into the .env file or enter them straight into the command line during the first run of the program.

Download Go dependencies with:

go mod download

Build

Compile the program on your machine with:

go build clockin.go

To make the executable runnable from anywhere, add the directory as a PATH environment variable.

How to Use

Starting a work session

To start recording a new work session, run:

clockin start

You can keep track of multiple work sessions running at once by providing a name identifier:

clockin start homework

Finishing a work session

To finish recording for all currently running work sessions, run:

clockin stop

You can specify a particular work session by its name identifier:

clockin stop homework

Show running sessions

To list all currently running work sessions, run:

clockin running

Reset data

To delete all stored data, run:

clockin reset

Statistics

A statistical summary of how you've spent your time working can be displayed by running:

clockin stats

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.