Skip to content

refactor(cli)!: polish ide subcommand and move workspace set-ide - #470

Merged
skevetter merged 1 commit into
mainfrom
review-ide-dx
May 31, 2026
Merged

refactor(cli)!: polish ide subcommand and move workspace set-ide#470
skevetter merged 1 commit into
mainfrom
review-ide-dx

Conversation

@skevetter

Copy link
Copy Markdown
Contributor

Summary

  • Tighten the devsy ide subcommand UX:
    • Use cobra.ExactArgs(1) and put <ide> in Use: strings for use/set/get.
    • Tab completion for the <ide> positional via ValidArgsFunction.
    • ide use logs a confirmation when the default is set.
    • ide set errors instead of silently doing nothing when no --option is passed.
    • ide list marks the default IDE with * instead of a true/false column.
    • ide get uses MarshalIndent and fmt.Fprintln(os.Stdout, ...) to match its sibling list command.
  • Move per-workspace IDE assignment off ide set --workspace into a dedicated workspace set-ide <workspace> <ide> command so the noun matches the state being mutated. The desktop IPC handler is updated accordingly; the renderer-side channel name (workspace_set_ide) was already correct.

BREAKING: devsy ide set --workspace <name> is removed. Use devsy workspace set-ide <workspace> <ide> instead.

- Use cobra.ExactArgs(1) and add <ide> positional to Use: strings for
  ide use/set/get; replace hand-rolled arg checks.
- Add ValidArgsFunction tab completion for the <ide> argument.
- ide use: log confirmation when the default IDE is set.
- ide set: error when invoked without --option (was a silent no-op).
- ide list: mark the default IDE with '*' instead of true/false.
- ide get (options): use MarshalIndent and write via fmt.Fprintln(os.Stdout)
  to match the sibling list command.
- Move per-workspace IDE assignment from 'ide set --workspace <name>'
  to a dedicated 'workspace set-ide <workspace> <ide>' command so the
  noun matches the state being mutated; update the desktop IPC handler
  accordingly.

BREAKING CHANGE: 'devsy ide set --workspace <name>' is removed. Use
'devsy workspace set-ide <workspace> <ide>' instead.
@netlify

netlify Bot commented May 31, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit ec94fd1
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a1c544e96f043000859aee5

@coderabbitai

coderabbitai Bot commented May 31, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 96b59fd3-bbae-497d-a54b-bb18665809ce

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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 and usage tips.

@skevetter
skevetter marked this pull request as ready for review May 31, 2026 16:21
@skevetter
skevetter merged commit ffc771c into main May 31, 2026
59 checks passed
@skevetter
skevetter deleted the review-ide-dx branch May 31, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant