Giter Site home page Giter Site logo

lt-cli's Introduction

lt-cli

lt demo

lt-cli is a small time tracking cli.

  • Each task must have a unique id.
  • One task can run at a time.

Install lt-cli:

npm i -g lt-cli

JavaScript Style Guide


cli usage

lt start [$id]
lt stop
lt add $id $value
lt subtract $id $value
lt rm [$id]
lt ls [$id]
lt log


lt start [$id]

Start a timer. If there is a running timer, lt will stop it. If no id is provided, lt will resume the last timer that was stopped.

lt start foo

lt stop

Stop the running timer.

lt add $id $value

Add a specific value to a timer. The value should include units, for example:

  • 30m
  • 0.5h
  • 2hr
  • 4d
  • 4.5h
  • 4h30m

lt add foo 1h7m

lt subtract $id $value

Subtract a specific value from a timer. The value should include units, for example:

  • 30m
  • 0.5h
  • 2hr
  • 4d
  • 4.5h
  • 4h30m

lt subtract foo 37m

lt rm [$id]

Remove a timer.

If no id is provided, all timers will be removed.

Flags

  • -f: Skip confirmation prompt.

lt ls [$id]

List the existing timers and the current duration of each. If a timer is running, it's id will be highlighted.

If an id is provided, only the matching timer will be listed.

lt log

Event log for all timers.


core

This is a cli for lt-core.


๐Ÿ”ฅ it's lt

lt-cli's People

Contributors

juice49 avatar iarna avatar

Stargazers

Adam Soutar avatar Andy Mardell avatar

Watchers

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