Skip to content

Migrate shell --live task selector from survey to huh#125

Merged
blsmth merged 2 commits intomainfrom
117-migrate-shell-to-huh
Apr 13, 2026
Merged

Migrate shell --live task selector from survey to huh#125
blsmth merged 2 commits intomainfrom
117-migrate-shell-to-huh

Conversation

@blsmth
Copy link
Copy Markdown
Contributor

@blsmth blsmth commented Mar 20, 2026

Summary

  • Migrate shell --live task selector from survey.Ask to huh.NewSelect[int]
  • Extract ShellTaskSelectForm as a pure form builder function
  • Add teatest TUI tests and testscript CLI tests
  • Add VHS recording for visual verification

Closes #117

Demo

shell --live with huh

Changes

File Purpose
cmd/shell.go Replace survey with huh; extract ShellTaskSelectForm
cmd/shell_test.go teatest tests (select first, second, last)
testdata/script/shell.txtar testscript for help output and missing flag error
demo-shell-live.tape VHS script for recording the demo GIF
demo-shell-live.gif Recorded demo

@blsmth
Copy link
Copy Markdown
Contributor Author

blsmth commented Mar 31, 2026

@ipmb — Want to check if you're OK with us self-approving these survey-to-huh migration PRs to keep the project moving. Happy to wait for your review if you'd prefer, but wanted to flag it since these have been open a while.

@blsmth blsmth force-pushed the 117-migrate-shell-to-huh branch from 4e00bbf to 13b724a Compare April 13, 2026 21:48
@blsmth blsmth changed the base branch from survey-to-huh-v2 to main April 13, 2026 21:53
@blsmth blsmth merged commit a670b9f into main Apr 13, 2026
3 of 4 checks passed
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.

Migrate cmd/shell.go from survey to huh

1 participant