Skip to content

refactor(cmd): rename --skip-pro flag to --skip-platform with hidden alias - #1639

Merged
skevetter merged 1 commit into
mainfrom
refactor/rename-skip-pro-flag
Oct 22, 2026
Merged

skevetter merged 1 commit into
mainfrom
refactor/rename-skip-pro-flag

Conversation

@skevetter

@skevetter skevetter commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • 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.

@skevetter skevetter added the rename Loft/Pro rename label Oct 21, 2026
@netlify

netlify Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit 3444cfe
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6ad94b1f840f01192d9dae01

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Refactor

Possibly related issues

  • 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: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning 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 Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: renaming --skip-pro to --skip-platform while retaining a hidden alias.
Description check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@netlify

netlify Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for images-devsy-sh canceled.

Name Link
🔨 Latest commit 3444cfe
🔍 Latest deploy log https://app.netlify.com/projects/images-devsy-sh/deploys/6ad94b1f26c9d823e3d8c088

@skevetter
skevetter marked this pull request as ready for review October 22, 2026 00:35
@skevetter

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

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.

@mergify

mergify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@skevetter

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

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.

@skevetter

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

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.

@skevetter

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

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.

@skevetter

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

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.

@skevetter
skevetter merged commit dbfc5ca into main Oct 22, 2026
116 checks passed
@skevetter
skevetter deleted the refactor/rename-skip-pro-flag branch October 22, 2026 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rename Loft/Pro rename size/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant