Skip to content

PR 1: Add --no-input flag for non-interactive login#112

Open
natefikru wants to merge 9 commits intomainfrom
nate/tvc-non-interactive-login
Open

PR 1: Add --no-input flag for non-interactive login#112
natefikru wants to merge 9 commits intomainfrom
nate/tvc-non-interactive-login

Conversation

@natefikru
Copy link
Copy Markdown

@natefikru natefikru commented Mar 30, 2026

Summary

  • Adds global --no-input flag (with TVC_NO_INPUT env var) that disables interactive prompts and suppresses non-essential output
  • Adds --org-id, --alias, and --api-env flags to the login command for non-interactive org setup
  • Adds clap constraints (conflicts_with, requires) to prevent invalid flag combinations
  • Adds info() helper that suppresses status messages when --no-input is set

Test plan

  • cargo test --test login (7 tests: non-interactive flow, api-env, status suppression, flag conflicts)
  • cargo test --test global_flags (2 tests: flag parsing and recognition)
  • cargo clippy --all-targets --all-features -- -D warnings
  • Manual: tvc login --no-input --org-id <ID> creates config without prompts

@natefikru natefikru changed the title PR 1: Add non-interactive login with global --no-input and --quiet flags PR 1: Add non-interactive login with --no-input flag Mar 30, 2026
@natefikru natefikru marked this pull request as ready for review March 30, 2026 16:36
@natefikru natefikru requested a review from emostov March 30, 2026 16:36
@natefikru natefikru changed the title PR 1: Add non-interactive login with --no-input flag Add --no-input flag for non-interactive login and deploy approve Mar 30, 2026
@natefikru natefikru changed the title Add --no-input flag for non-interactive login and deploy approve Add --no-input flag for non-interactive login Mar 30, 2026
@natefikru natefikru changed the title Add --no-input flag for non-interactive login PR 1: Add --no-input flag for non-interactive login Mar 30, 2026
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