You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(cmd): rename --skip-pro flag to --skip-platform with hidden alias - #1639
devsy workspace list flag renamed from --skip-pro to --skip-platform.
--skip-pro kept as a hidden alias bound to the same field and default.
Go constants: names.SkipPlatform (visible) and names.SkipProAlias (hidden). names.SkipPro removed; no callers remain.
Why
Flag wording should match the platform terminology. The hidden alias keeps existing scripts working. Unknown flags still error.
Validation
mkdir -p dist && go build ./...
GOOS=windows go vet ./cmd/workspace/... ./pkg/flags/... ./pkg/clihelp/...
mise run cli:format; mise run cli:lint:ci (0 issues)
go test ./pkg/flags/... ./pkg/clihelp/... passes; go test ./cmd/workspace/ passes with -skip TestDescribeCmd_Plain
TestDescribeCmd_Plain* hangs on pristine origin/main too (pre-existing, not touched here)
cd desktop && npx vitest run src/main/__tests__/cli.test.ts (36/36); npx biome check on the touched TS file
mise run cli:build:dev; workspace list --help shows only --skip-platform; --skip-platform and --skip-pro both exit 0; --skip-bogus errors UNKNOWN
CodeRabbit CLI
One minor finding: keep names.SkipPro as a deprecated alias. Not applied: no callers remain (go build ./... passes) and the repo policy is clean cutover, no shims.
Tier
T2: backward-compatible flag rename with hidden alias.
Auto-merge
Non-test changed lines: 19 (cmd/workspace/list.go 16, pkg/flags/names/names.go 3) in 2 files. Fixture mock-devsy.cjs adds 9 more. Within policy; not merged, draft only.
Remaining
skip-pro|SkipPro|skipPro|SKIP_PRO on touched paths: 14 before, 11 after (hidden alias plus its tests and the mock's compat check). desktop/src/main/watcher.ts:267 still passes --skip-pro; it is in open PR #1609, so it is excluded here. Switch it to --skip-platform after #1609 merges.
Summary by CodeRabbit
New Features
The workspace list command now provides the --skip-platform option.
Changes
The previous --skip-pro spelling remains available as a hidden alias for compatibility. The visible option in command help is now --skip-platform.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 433f2c10-d0b1-4419-99ad-6aeccf6f0ba4
📥 Commits
Reviewing files that changed from the base of the PR and between 47a168d and 3444cfe.
📒 Files selected for processing: 7
cmd/workspace/list.go
cmd/workspace/list_test.go
desktop/e2e/fixtures/mock-devsy.cjs
desktop/src/main/__tests__/cli.test.ts
pkg/clihelp/help_test.go
pkg/flags/names/names.go
pkg/flags/names/names_test.go
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.
📝 Walkthrough
The workspace list command now exposes --skip-platform and accepts --skip-pro as a hidden alias. Both flags set the same field. Desktop CLI fixtures and tests use the new flag name.
Changes: Workspace list flag
Layer / File(s)
Summary
Flag contract and command pkg/flags/names/names.go, pkg/flags/names/names_test.go, cmd/workspace/list.go, cmd/workspace/list_test.go
The command binds visible skip-platform and hidden skip-pro flags to SkipPlatform. Tests cover the default, both flag names, visibility, and wire names.
CLI flag consumers desktop/e2e/fixtures/mock-devsy.cjs, desktop/src/main/__tests__/cli.test.ts, pkg/clihelp/help_test.go
The desktop mock recognizes --skip-platform. CLI forwarding and help tests expect the new flag name.
Issue 1551 tracks the repo-wide Pro-to-Platform rename and includes --skip-pro in its checklist. This change renames that flag while retaining it as an alias.
Merge Risk:⚪ Minimal · up to 3444c
The flag rename retains the old CLI spelling as a hidden alias, and no actionable merge-blocking risk is established.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 7 files.
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly and concisely describes the main change: renaming --skip-pro to --skip-platform while retaining a hidden alias.
Description check
The description explains the change, motivation, compatibility behavior, validation performed, known pre-existing test issue, and remaining follow-up. It does not reproduce every template section, but…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Description check
Explanation
The description explains the change, motivation, compatibility behavior, validation performed, known pre-existing test issue, and remaining follow-up. It does not reproduce every template section, but it provides the critical information needed for review.
✨ Finishing Touches
✨ Simplify code
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
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
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
devsy workspace listflag renamed from--skip-proto--skip-platform.--skip-prokept as a hidden alias bound to the same field and default.names.SkipPlatform(visible) andnames.SkipProAlias(hidden).names.SkipProremoved; no callers remain.Why
Flag wording should match the platform terminology. The hidden alias keeps existing scripts working. Unknown flags still error.
Validation
mkdir -p dist && go build ./...GOOS=windows go vet ./cmd/workspace/... ./pkg/flags/... ./pkg/clihelp/...mise run cli:format;mise run cli:lint:ci(0 issues)go test ./pkg/flags/... ./pkg/clihelp/...passes;go test ./cmd/workspace/passes with-skip TestDescribeCmd_PlainTestDescribeCmd_Plain*hangs on pristineorigin/maintoo (pre-existing, not touched here)cd desktop && npx vitest run src/main/__tests__/cli.test.ts(36/36);npx biome checkon the touched TS filemise run cli:build:dev;workspace list --helpshows only--skip-platform;--skip-platformand--skip-proboth exit 0;--skip-boguserrorsUNKNOWNCodeRabbit CLI
One minor finding: keep
names.SkipProas a deprecated alias. Not applied: no callers remain (go build ./...passes) and the repo policy is clean cutover, no shims.Tier
T2: backward-compatible flag rename with hidden alias.
Auto-merge
Non-test changed lines: 19 (
cmd/workspace/list.go16,pkg/flags/names/names.go3) in 2 files. Fixturemock-devsy.cjsadds 9 more. Within policy; not merged, draft only.Remaining
skip-pro|SkipPro|skipPro|SKIP_PROon touched paths: 14 before, 11 after (hidden alias plus its tests and the mock's compat check).desktop/src/main/watcher.ts:267still passes--skip-pro; it is in open PR #1609, so it is excluded here. Switch it to--skip-platformafter #1609 merges.Summary by CodeRabbit
--skip-platformoption.--skip-prospelling remains available as a hidden alias for compatibility. The visible option in command help is now--skip-platform.