Skip to content

cmdio: drop AskSelect, migrate caller to RunSelect#5219

Merged
pietern merged 1 commit intomainfrom
consolidate-cmdio-prompts
May 8, 2026
Merged

cmdio: drop AskSelect, migrate caller to RunSelect#5219
pietern merged 1 commit intomainfrom
consolidate-cmdio-prompts

Conversation

@pietern
Copy link
Copy Markdown
Contributor

@pietern pietern commented May 8, 2026

Summary

  • cmdio.AskSelect was the only function in libs/cmdio/compat.go that mixed template-specific concerns (multi-line label handling) with cmdio. Its single caller in libs/template/config.go now calls cmdio.RunSelect directly and handles the prefix lines locally, shrinking cmdio's public surface by one.
  • Added HideHelp to cmdio.SelectOptions so the template prompt keeps the hidden-help behavior that AskSelect previously hardcoded.

Test plan

  • Manual: databricks bundle init default-python and confirm the enum prompts render their multi-line description and selection list as before.

AskSelect was the only function in libs/cmdio/compat.go that mixed
template-specific concerns (multi-line label handling) with cmdio. Its
single caller in libs/template/config.go now calls cmdio.RunSelect
directly and handles the prefix lines locally, shrinking cmdio's public
surface by one.

Added HideHelp to cmdio.SelectOptions so the template prompt keeps the
hidden-help behavior that AskSelect previously hardcoded.

Co-authored-by: Isaac
@pietern pietern temporarily deployed to test-trigger-is May 8, 2026 10:10 — with GitHub Actions Inactive
@pietern pietern temporarily deployed to test-trigger-is May 8, 2026 10:10 — with GitHub Actions Inactive
pietern added a commit that referenced this pull request May 8, 2026
cmdio.AskSelect is being removed in #5219 (its only caller migrated to
RunSelect with the new HideHelp option), so this scenario would no longer
compile against main once that lands.

Co-authored-by: Isaac
@pietern pietern requested a review from simonfaltum May 8, 2026 10:17
@pietern pietern merged commit 2281422 into main May 8, 2026
23 of 24 checks passed
@pietern pietern deleted the consolidate-cmdio-prompts branch May 8, 2026 10:30
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