The panel now generates the auto-deploy command as
"calagopus-wings configure --join-data ..." instead of
"wings configure --join-data ...". extract_join_data() already handles
any prefix (it matches on the --join-data flag itself), so this is a
docs/prompt wording update only, keeping the on-screen instructions in
sync with what users actually copy from the panel.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
`prompt()` used a single `read -r`, which stops at the first newline.
If a pasted value (most notably join-data copied from the panel UI)
arrives with an embedded newline, everything after it was silently
dropped, and the leftover fragment would be consumed by the *next*
prompt instead. The truncated-but-still-valid-looking base64 could
still decode successfully, just missing trailing fields like `remote`,
producing a config.yml that fails at startup with "invalid remote
configuration, cannot connect to panel".
prompt() now drains any additional lines already buffered on the TTY
after the first read, so a multi-line paste is captured in full
without blocking on further keystrokes.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
wings configure now prompts to confirm overwriting an existing
config.yml. Under curl|bash stdin isn't a TTY, so the prompt fails
with "not a terminal" instead of writing the config. Add --override
to skip that prompt, since the installer already gets explicit user
confirmation via /dev/tty beforehand.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>