cmdio: drop unused PromptOptions.AllowEdit#5177
cmdio: drop unused PromptOptions.AllowEdit#5177pietern wants to merge 1 commit intodrop-promptui-importsfrom
Conversation
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
Approval status: pending
|
Approval status: pending
|
Summary
AllowEditonly affects howpromptuirenders a non-emptyDefault: withAllowEdit:truethe default pre-fills the buffer; withAllowEdit:falseit appears as a placeholder that's wiped on first keystroke. No caller in the repo setsDefault, 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.