Bare 'devbox' on a fresh, unjoined machine offers a step-by-step wizard: [Y] yes please [n] no, I'm a devbox expert — don't ask again 'n' writes a setup-skipped marker in the config dir and never asks again; 'devbox setup' runs it explicitly anytime. The wizard owns the one fiddly step (join: hub URL + token, with a hint where to get the token) then points at mount/publish/start — mount stays a printed next-step, not a reimplementation (ponytail). Gated on a real TTY so pipes/scripts are never blocked; extracted a shared joinHub helper so the wizard and 'devbox join' don't diverge. Stdlib ModeCharDevice (no go-isatty). Test: opt-out gate + don't-ask-again persistence. |
||
|---|---|---|
| .. | ||
| control.go | ||
| main.go | ||
| main_test.go | ||
| pidfile.go | ||
| pidfile_test.go | ||
| wizard.go | ||
| wizard_test.go | ||