fnox 1.28.0: Nicht-interaktiver Modus für exec
fnox 1.28.0 ergänzt die globale Option --non-interactive bzw. FNOX_NON_INTERACTIVE, die Eingabeaufforderungen und browserbasierte Authentifizierung deaktiviert, sodass CI- und Skriptläufe bei erforderlicher Interaktion sofort mit einem Fehler abbrechen.
A small feature release that adds a global --non-interactive mode for fnox exec and other resolve paths, so CI and scripted runs can rely on cached credentials and fail fast instead of hanging on auth prompts or device flows.
Added
Global --non-interactive / FNOX_NON_INTERACTIVE (#565) -- @jdx
A new top-level flag (and matching env var) disables prompts and browser-based auth flows for the entire invocation. It is propagated through the daemon protocol, so daemon-backed resolution behaves the same way as direct resolution -- including when fnox auto-starts daemon serve to handle the request.
fnox --non-interactive exec -- ./run-tests.sh
# or
FNOX_NON_INTERACTIVE=1 fnox exec -- ./run-tests.sh
In non-interactive mode:
should_prompt_authno longer prompts, regardless of TTY orprompt_authconfig.- The
github-oauthlease backend still happily reuses cached and refreshable tokens, but fails immediately with a clearinteractive auth required for GitHub OAuth device authorizationerror instead of printing a user code and polling. The error hint points you at runningfnox lease create <lease-name>from an interactive terminal first.
This is intended for CI jobs, cron tasks, and other scripted runs where a hung prompt is worse than a fast failure.