https://github.com/juice49/lt-cli
little timer
https://github.com/juice49/lt-cli
cli timer
Last synced: 3 months ago
JSON representation
little timer
- Host: GitHub
- URL: https://github.com/juice49/lt-cli
- Owner: juice49
- Created: 2018-02-03T21:19:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-08-10T17:41:56.000Z (almost 5 years ago)
- Last Synced: 2025-01-09T06:09:57.568Z (over 1 year ago)
- Topics: cli, timer
- Language: JavaScript
- Size: 172 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `lt-cli`

`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`
[](https://github.com/feross/standard)
***
# cli usage
[`lt` start [$id]](#lt-start-id)
[`lt` stop](#lt-stop)
[`lt` add $id $value](#lt-add-id-value)
[`lt` subtract $id $value](#lt-subtract-id-value)
[`lt` rm [$id]](#lt-rm-id)
[`lt` ls [$id]](#lt-ls-id)
[`lt` log](#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`](https://github.com/juice49/lt-core).
***
🔥 it's `lt`