Skip to content

feat: --no-interactive for headless CI#3

Merged
marcopesani merged 1 commit intomasterfrom
feat/no-interactive
Mar 31, 2026
Merged

feat: --no-interactive for headless CI#3
marcopesani merged 1 commit intomasterfrom
feat/no-interactive

Conversation

@marcopesani
Copy link
Copy Markdown
Contributor

Summary

Adds a global --no-interactive flag and automatic headless detection (CI=true, non-TTY stdin). When OAuth would be required but the environment cannot complete browser-based auth, the CLI exits immediately with code 1 and points users to --api-key / BITREFILL_API_KEY.

Verification

  • pnpm test — all passing
  • pnpm build — clean
  • Manual: --no-interactive, CI=true, and piped stdin each exit 1 without API key as expected

Made with Cursor

- resolveInteractive(): --no-interactive, CI=true, or non-TTY stdin
- Exit early with clear message when OAuth is required but interaction is disabled
- Document in README; register flag on Commander root

Made-with: Cursor
@marcopesani marcopesani merged commit 5aa7a1c into master Mar 31, 2026
1 check 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.

1 participant