Unify var and cache into state subcommand#178
Merged
Conversation
Replace `wt config var` and `wt config cache` with a unified `wt config state` subcommand that provides consistent get/set/clear semantics for all runtime state. New CLI structure uses key-first subcommands: - `wt config state default-branch get [--refresh]` - `wt config state default-branch set <branch>` - `wt config state default-branch clear` - `wt config state ci-status get [--refresh] [--branch=X]` - `wt config state ci-status clear [--branch=X | --all]` - `wt config state marker get [--branch=X]` - `wt config state marker set <value> [--branch=X]` - `wt config state marker clear [--branch=X | --all]` - `wt config state logs get` - `wt config state logs clear` - `wt config state show` Key changes: - Added ability to manually set/clear default branch - Each key is a subcommand with only its valid flags (type-safe at parse time) - Removed runtime validation since clap handles invalid combinations - Reuse format_relative_time_short for age formatting in logs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wt config varandwt config cachewith unifiedwt config statesubcommandgit remote set-headformat_relative_time_shortfor age formatting in logsTest plan
test_command_pages_are_in_sync🤖 Generated with Claude Code