Skip to content

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

Open
blsmth wants to merge 2 commits intosurvey-to-huh-v2from
117-migrate-shell-to-huh
Open

Migrate shell --live task selector from survey to huh#125
blsmth wants to merge 2 commits intosurvey-to-huh-v2from
117-migrate-shell-to-huh

Conversation

@blsmth
Copy link
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

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.

1 participant