refactor(cli): replace positional input argument with --input / -i flag
This commit is contained in:
parent
ecdd28e8a3
commit
715e0988dc
3 changed files with 9 additions and 8 deletions
12
AGENTS.md
12
AGENTS.md
|
|
@ -53,22 +53,22 @@ Do **not** use `pip` or `python` directly.
|
|||
|
||||
```sh
|
||||
# Print CSV to stdout (date defaults to today)
|
||||
uv run timesheets input.md
|
||||
uv run timesheets --input input.md
|
||||
|
||||
# Write CSV to a file
|
||||
uv run timesheets input.md -o output.csv
|
||||
uv run timesheets --input input.md -o output.csv
|
||||
|
||||
# Override the date (DD/MM/YY)
|
||||
uv run timesheets input.md --date 22/05/26
|
||||
uv run timesheets --input input.md --date 22/05/26
|
||||
|
||||
# Use a specific project map file
|
||||
uv run timesheets input.md --map /path/to/project_map.json
|
||||
uv run timesheets --input input.md --map /path/to/project_map.json
|
||||
|
||||
# Print a human-readable summary instead of CSV
|
||||
uv run timesheets input.md --summary
|
||||
uv run timesheets --input input.md --summary
|
||||
|
||||
# Read from stdin
|
||||
cat input.md | uv run timesheets -
|
||||
cat input.md | uv run timesheets --input -
|
||||
|
||||
# Fetch today's entries from Joplin (token via env var)
|
||||
JOPLIN_TOKEN=your_token uv run timesheets --joplin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue