You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmdio: relocate helpers into dedicated files; build Secret/Select on Run* (#5221)
## Summary
- `compat.go` is gone. `Log`/`LogString` move to `log.go`, and
`readLine`/`Ask`/`AskYesOrNo` move to `ask.go`. The "compatibility
layer" doc comments (a transitional shim from #3818) are replaced with
descriptions of what each function does, since these are now their
permanent home.
- `Tuple`/`Select`/`SelectOrdered` move from `io.go` to `select.go` and
are reimplemented on top of `RunSelect`. A new `HideSelected` option on
`SelectOptions` preserves the existing post-prompt display behavior.
- `Secret` moves from `io.go` to `prompt.go` and becomes a thin wrapper
over `RunPrompt`. A new `HideEntered` option on `PromptOptions` carries
the masked-input post-submission behavior.
## Result
The `github.com/manifoldco/promptui` import is confined to
`libs/cmdio/prompt.go` and `libs/cmdio/select.go`; every other prompt
and selection helper in the package builds on those two entry points.
## Test plan
- [x] Manual: `databricks bundle run` from a bundle with multiple
resources triggers the resource picker (`cmdio.Select`).
- [x] Manual: `databricks secrets put-secret <scope> <key>` triggers the
masked secret prompt (`cmdio.Secret`).
0 commit comments