Skip to content

cmdio: drop unused PromptOptions.AllowEdit#5177

Merged
pietern merged 1 commit intomainfrom
drop-prompt-allowedit
May 6, 2026
Merged

cmdio: drop unused PromptOptions.AllowEdit#5177
pietern merged 1 commit intomainfrom
drop-prompt-allowedit

Conversation

@pietern
Copy link
Copy Markdown
Contributor

@pietern pietern commented May 4, 2026

Summary

AllowEdit only affects how promptui renders a non-empty Default: with AllowEdit:true the default pre-fills the buffer; with AllowEdit:false it appears as a placeholder that's wiped on first keystroke. No caller in the repo sets Default, so the field has been a no-op everywhere it was passed. Drop it rather than carry an option that does nothing.

Test plan

  • go build ./...
  • go vet ./cmd/configure/... ./cmd/auth/... ./libs/cmdio/...
  • go test ./libs/cmdio/... ./cmd/configure/... ./cmd/auth/...

This pull request and its description were written by Isaac.

@pietern pietern temporarily deployed to test-trigger-is May 4, 2026 15:35 — with GitHub Actions Inactive
@pietern pietern temporarily deployed to test-trigger-is May 4, 2026 15:35 — with GitHub Actions Inactive
Copy link
Copy Markdown
Member

@simonfaltum simonfaltum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Base automatically changed from drop-promptui-imports to main May 6, 2026 06:51
AllowEdit only affects how promptui renders a non-empty Default: with
AllowEdit:true the default pre-fills the buffer; with AllowEdit:false
it appears as a placeholder that's wiped on first keystroke. No caller
in the repo sets Default, so the field has been a no-op everywhere it
was passed. Drop it rather than carry an option that does nothing.

Co-authored-by: Isaac
@pietern pietern force-pushed the drop-prompt-allowedit branch from 0e2b171 to ee81845 Compare May 6, 2026 06:55
@pietern pietern temporarily deployed to test-trigger-is May 6, 2026 06:55 — with GitHub Actions Inactive
@pietern pietern temporarily deployed to test-trigger-is May 6, 2026 06:55 — with GitHub Actions Inactive
@pietern pietern merged commit 1b1ad15 into main May 6, 2026
36 of 39 checks passed
@pietern pietern deleted the drop-prompt-allowedit branch May 6, 2026 07:31
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.

2 participants