feat(worktree): interactive add-repo, config scope, and clean command#31
Merged
EndersonPro merged 5 commits intomainfrom Apr 22, 2026
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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
This PR delivers three substantial UX and infrastructure improvements to
flutree:scope.rootconfig — newconfig set/get scope.rootcommands that persist a default discovery root path with precedence (--scopeflag > persisted config >.fallback). Includes validation for invalid/non-directory/unreachable paths.flutree cleancommand — new command to clean the current managed worktree, with optional--forceto also removepubspec.lock.Changes
7acdcdffeat(app): add clean/config services and add-repo wizard corec98a145feat(cli): wire config, clean, interactive add-repo, and table UXFiles Changed
cmd/flutree/main.gocleancommand,config set/gethandlers, interactive add-repo wiring with TTY gatinginternal/ui/add_repo_wizard.gointernal/ui/add_repo_wizard_test.gointernal/app/config_service.goSetScopeRoot/GetScopeRootand validationinternal/app/scope_resolver.go--scope> config >.)internal/app/clean_service.gointernal/infra/config/repository.gointernal/ui/table.goflutree listtolipgloss/tablewith width-aware truncationintegration/cli_contract_test.godocs/usage.md,README.mdTest Plan
go test ./...→ 183 passed, 0 failedgo vet ./...→ no issuescreateandadd-repo