Skip to content

refactor: Unify internal/cmd/util/scope.go parsing into a single Path type with options-driven Parse#260

Merged
tmeckel merged 4 commits into
masterfrom
tmeckel/issue259
Jun 5, 2026
Merged

refactor: Unify internal/cmd/util/scope.go parsing into a single Path type with options-driven Parse#260
tmeckel merged 4 commits into
masterfrom
tmeckel/issue259

Conversation

@tmeckel

@tmeckel tmeckel commented Jun 5, 2026

Copy link
Copy Markdown
Owner

Close #259

tmeckel added 4 commits June 5, 2026 15:06
Replaces the separate Scope/Target structs and their ad-hoc helpers with a single Parse entrypoint controlled by ParseOptions flags. This removes duplicated segment validation, empty-input guards, and default-org fallback code that was scattered through the command utilities.
Replace util.Scope with util.Path across command implementations. Update all references from scope.Target to scope.Targets[0] to accommodate the new slice-based target model in parsing logic.
@tmeckel tmeckel self-assigned this Jun 5, 2026
@tmeckel tmeckel merged commit a23352e into master Jun 5, 2026
1 check passed
@tmeckel tmeckel deleted the tmeckel/issue259 branch June 5, 2026 16:18
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.

refactor: Unify internal/cmd/util/scope.go parsing into a single Path type with options-driven Parse

1 participant