kahunas-cli 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -16,22 +16,22 @@ pnpm build
16
16
  2) Log in once (opens a browser):
17
17
 
18
18
  ```bash
19
- node dist/cli.js auth login
19
+ pnpm kahunas -- auth login
20
20
  ```
21
21
 
22
22
  3) Fetch data:
23
23
 
24
24
  ```bash
25
- node dist/cli.js checkins list
26
- node dist/cli.js workout list
27
- node dist/cli.js workout pick
25
+ pnpm kahunas -- checkins list
26
+ pnpm kahunas -- workout list
27
+ pnpm kahunas -- workout pick
28
28
  ```
29
29
 
30
- You can also use the pnpm shortcut:
30
+ You can also run without installing globally:
31
31
 
32
32
  ```bash
33
- pnpm kahunas -- checkins list
34
- pnpm kahunas -- workout events
33
+ npx kahunas-cli checkins list
34
+ npx kahunas-cli workout events
35
35
  ```
36
36
 
37
37
  ## Commands
@@ -72,7 +72,7 @@ Tokens are saved to:
72
72
  If the API list is missing a program you see in the web UI, run:
73
73
 
74
74
  ```bash
75
- node dist/cli.js workout sync
75
+ pnpm kahunas -- workout sync
76
76
  ```
77
77
 
78
78
  This opens a browser, you log in, then navigate to your workouts page. After you press Enter, the CLI captures the workout list from network responses and writes a cache:
@@ -87,7 +87,7 @@ Raw output (`--raw`) prints the API response only.
87
87
  To see when workouts happened, the calendar endpoint returns log events with timestamps. By default each event is enriched with the full program payload (best effort; falls back to cached summary if needed).
88
88
 
89
89
  ```bash
90
- node dist/cli.js workout events --user <user-uuid>
90
+ pnpm kahunas -- workout events --user <user-uuid>
91
91
  ```
92
92
 
93
93
  Or via pnpm:
@@ -101,8 +101,8 @@ Default timezone is `Europe/London`. Override with `--timezone`.
101
101
  You can filter by program or workout UUID:
102
102
 
103
103
  ```bash
104
- node dist/cli.js workout events --program <program-uuid>
105
- node dist/cli.js workout events --workout <workout-uuid>
104
+ pnpm kahunas -- workout events --program <program-uuid>
105
+ pnpm kahunas -- workout events --workout <workout-uuid>
106
106
  ```
107
107
 
108
108
  Use `--minimal` to return the raw event objects without program enrichment.
@@ -117,7 +117,7 @@ The user UUID is saved automatically after `checkins list`, or you can set it:
117
117
  Most commands auto-login by default if a token is missing or expired. To disable:
118
118
 
119
119
  ```bash
120
- node dist/cli.js checkins list --no-auto-login
120
+ pnpm kahunas -- checkins list --no-auto-login
121
121
  ```
122
122
 
123
123
  ## Flags
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kahunas-cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {