Skip to content

docs(rfd): Add RFD 062 for CLI usage tracking#469

Merged
JeanMertz merged 2 commits intomainfrom
prr39
Mar 22, 2026
Merged

docs(rfd): Add RFD 062 for CLI usage tracking#469
JeanMertz merged 2 commits intomainfrom
prr39

Conversation

@JeanMertz
Copy link
Collaborator

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.

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>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit 0658fda into main Mar 22, 2026
10 checks passed
@JeanMertz JeanMertz deleted the prr39 branch March 22, 2026 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant