Commit 0658fda
authored
docs(rfd): Add RFD 062 for CLI usage tracking (#469)
Introduce RFD 062, which proposes local-only CLI usage tracking. The
design records which commands and arguments are invoked per workspace
into a `usage.json` file, enabling future adaptive features without
sending any data externally.
Also updates RFD 060 to reflect the revised `CliRecord` design: the
`flag` and `raw_value` fields are replaced by a single `arg_id` field
(the clap argument ID), with raw values and display names deferred to
render time via `ArgMatches::get_raw()` and
`Command::find_subcommand()`. This keeps the recorder lightweight and
avoids cloning values at every `apply_*` call site.
---------
Signed-off-by: Jean Mertz <git@jeanmertz.com>1 parent 54cf780 commit 0658fda
3 files changed
Lines changed: 612 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
245 | 249 | | |
246 | 250 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
329 | 328 | | |
330 | 329 | | |
331 | 330 | | |
332 | 331 | | |
333 | 332 | | |
334 | 333 | | |
335 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
336 | 347 | | |
337 | 348 | | |
338 | 349 | | |
| |||
346 | 357 | | |
347 | 358 | | |
348 | 359 | | |
349 | | - | |
| 360 | + | |
350 | 361 | | |
351 | 362 | | |
352 | 363 | | |
353 | 364 | | |
354 | | - | |
| 365 | + | |
355 | 366 | | |
356 | 367 | | |
357 | 368 | | |
| |||
473 | 484 | | |
474 | 485 | | |
475 | 486 | | |
476 | | - | |
477 | | - | |
478 | | - | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
479 | 490 | | |
480 | 491 | | |
481 | 492 | | |
| |||
0 commit comments