Initial stopwatch CLI
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
# stopwatch-cli
|
||||
|
||||
A minimal terminal stopwatch with an interactive TUI.
|
||||
|
||||
```
|
||||
┌─────────────────────┐
|
||||
│ 00:00:00.0 │
|
||||
│ ● RUNNING │
|
||||
└─────────────────────┘
|
||||
|
||||
[space] start/pause [r] reset [q] quit
|
||||
```
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
## Run
|
||||
|
||||
```bash
|
||||
# Build and run
|
||||
npm run build
|
||||
npm start
|
||||
|
||||
# Run directly (no build step)
|
||||
npm run dev
|
||||
```
|
||||
|
||||
## Test
|
||||
|
||||
```bash
|
||||
npm test
|
||||
```
|
||||
|
||||
## Key bindings
|
||||
|
||||
| Key | Action |
|
||||
|---------|------------------|
|
||||
| `space` | Start / Pause |
|
||||
| `r` | Reset to zero |
|
||||
| `q` | Quit |
|
||||
| `ctrl+c`| Quit |
|
||||
|
||||
## Time format
|
||||
|
||||
Elapsed time is shown as `HH:MM:SS.d` where `d` is tenths of a second.
|
||||
Reference in New Issue
Block a user