Skip to content

Interactive platform selection for exfig init - #36

Closed
google-labs-jules[bot] wants to merge 1 commit into
mainfrom
palette-ux-improvement-init-prompt-15904252445429364441
Closed

Interactive platform selection for exfig init#36
google-labs-jules[bot] wants to merge 1 commit into
mainfrom
palette-ux-improvement-init-prompt-15904252445429364441

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

Improved the UX of the exfig init command. Previously, omitting the --platform argument resulted in an error. Now, in interactive environments (TTY), the user is presented with a numbered list of available platforms to choose from. This guides the user through the setup process instead of halting it. In non-interactive environments (e.g., CI scripts), the command still fails safely if the argument is missing. This change required making the platform argument optional and adding CaseIterable conformance to the Platform enum.


PR created automatically by Jules for task 15904252445429364441 started by @alexey1312

UX improvement: Instead of failing when the required `--platform` argument is missing, `exfig init` now interactively prompts the user to select a platform if running in a TTY environment.

- Make `platform` argument optional in `GenerateConfigFile`
- Add `CaseIterable` conformance to `Platform` enum
- Implement interactive prompt logic using `TTYDetector`
- Gracefully handle non-interactive environments by throwing a validation error if the argument is missing
@google-labs-jules

Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@alexey1312 alexey1312 closed this Jan 9, 2026
@alexey1312
alexey1312 deleted the palette-ux-improvement-init-prompt-15904252445429364441 branch January 9, 2026 11:24
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.

1 participant