Skip to content

Add yes option for auto confirmation #8

@ichbinder

Description

@ichbinder

Is your feature request related to a problem? Please describe.

When managing Nginx Proxy Manager through the CLI, users frequently need to perform operations that require manual confirmation. This becomes tedious and inefficient when automating tasks or running scripts, as each operation requires manual user input to proceed.

Describe the solution you'd like

I have implemented a new -y flag that automatically confirms all operations without requiring user interaction. This works similar to apt-get -y or other common CLI tools. When the -y flag is used:

  • No confirmation prompts are shown
  • The script proceeds with default "yes" responses
  • Operations execute automatically
  • Status messages still show for tracking progress

Describe alternatives you've considered

  1. Environment variable for auto-confirm: More complex to implement and use
  2. Config file setting: Requires additional file management
  3. Separate scripts for automated/interactive modes: Leads to code duplication
  4. Expect scripts: Too complex for most users

Additional context

  • Works with all operations that normally require confirmation
  • Ideal for automation and scripting
  • Maintains all error checking and validation
  • Similar to standard Unix/Linux tool behavior
  • Can be combined with other flags

PR: #7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions