Commit 3abc7a8
feat(cli): add Klyne tracking to all CLI commands (#10)
* feat(cli): add Klyne tracking to all CLI commands
Track all myfy CLI command usage with Klyne analytics:
- myfy run: tracks host, port, reload, app_path
- myfy start: tracks host, port, workers, app_path
- myfy routes: tracks command execution
- myfy modules: tracks command execution
- myfy doctor: tracks command execution
- myfy frontend init: tracks interactive, templates_dir, static_dir
- myfy frontend build: tracks command execution
This enables analytics on CLI command usage patterns.
* style(cli): apply ruff formatting to tracking code
Format klyne.track() calls for better readability.
* fix(cli): update klyne version requirement to >=0.1.0
Changed klyne dependency from >=0.2.0 to >=0.1.0 to match the
actual available versions on PyPI. The latest version is 0.1.0a107.
This fixes type checking errors by using klyne's built-in type hints
instead of custom stubs.
* fix(cli): use correct klyne API and update to v0.3.0
Fix klyne tracking by using the correct API method:
- Changed klyne.track() to klyne.track_event()
- This is the correct method name in the klyne SDK
Also update klyne dependency to >=0.3.0 to use the published version.
* fix(cli): correct klyne API to use track() in v0.3.0
In klyne 0.3.0, the method is track(), not track_event().
Changed all tracking calls to use the correct API.
---------
Co-authored-by: Claude <[email protected]>1 parent 8fe690f commit 3abc7a8
File tree
3 files changed
+34
-1
lines changed- packages/myfy-cli
- myfy_cli
- commands
3 files changed
+34
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
147 | 157 | | |
148 | 158 | | |
149 | 159 | | |
| |||
192 | 202 | | |
193 | 203 | | |
194 | 204 | | |
| 205 | + | |
| 206 | + | |
195 | 207 | | |
196 | 208 | | |
197 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
193 | 202 | | |
194 | 203 | | |
195 | 204 | | |
| |||
292 | 301 | | |
293 | 302 | | |
294 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
295 | 313 | | |
296 | 314 | | |
297 | 315 | | |
| |||
456 | 474 | | |
457 | 475 | | |
458 | 476 | | |
| 477 | + | |
459 | 478 | | |
460 | 479 | | |
461 | 480 | | |
| |||
504 | 523 | | |
505 | 524 | | |
506 | 525 | | |
| 526 | + | |
507 | 527 | | |
508 | 528 | | |
509 | 529 | | |
| |||
528 | 548 | | |
529 | 549 | | |
530 | 550 | | |
| 551 | + | |
531 | 552 | | |
532 | 553 | | |
533 | 554 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments