Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: smallstep/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: smallstep/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: carl/tty-detection-674
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 8 commits
  • 26 files changed
  • 2 contributors

Commits on Jan 22, 2026

  1. Add --non-interactive flag and improve TTY detection

    Add support for non-interactive environments by:
    - Adding --non-interactive global flag (also STEP_NON_INTERACTIVE env var)
    - Checking for terminal availability before prompting for passwords
    - Returning helpful error messages when prompts fail in CI/systemd/Docker
    
    This change requires smallstep/cli-utils#210 which adds:
    - ui.CanPrompt() for TTY detection
    - errs.RequiredInputError for descriptive error messages
    
    Fixes #674
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    tashian and claude committed Jan 22, 2026
    Configuration menu
    Copy the full SHA
    2418bad View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2026

  1. Configuration menu
    Copy the full SHA
    095867f View commit details
    Browse the repository at this point in the history
  2. Don't hardcode password flag in non-interactive error

    Address review feedback: different commands use different password
    flags (--password-file, --provisioner-password-file, --admin-password-file,
    etc.), so don't suggest a specific flag. Instead, guide users to check
    --help for the correct flag for their command.
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    tashian and claude committed Jan 27, 2026
    Configuration menu
    Copy the full SHA
    b119584 View commit details
    Browse the repository at this point in the history
  3. Propagate --non-interactive flag to environment variable

    Add a Before hook that sets STEP_NON_INTERACTIVE=1 when the
    --non-interactive flag is used, allowing ui.CanPrompt() to detect
    the flag without needing access to the cli context.
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    tashian and claude committed Jan 27, 2026
    Configuration menu
    Copy the full SHA
    ed500cc View commit details
    Browse the repository at this point in the history
  4. Remove error param

    tashian committed Jan 27, 2026
    Configuration menu
    Copy the full SHA
    5795a14 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8676497 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f98fc9d View commit details
    Browse the repository at this point in the history
  7. Remove unused errs import and local replace directive

    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    tashian and claude committed Jan 27, 2026
    Configuration menu
    Copy the full SHA
    c5454ee View commit details
    Browse the repository at this point in the history
Loading