Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dismiss prompts and warnings with different answers #16761

Open
ylazy opened this issue Jan 9, 2025 · 0 comments
Open

Dismiss prompts and warnings with different answers #16761

ylazy opened this issue Jan 9, 2025 · 0 comments
Labels
cli Command Line Interface feature

Comments

@ylazy
Copy link

ylazy commented Jan 9, 2025

When I'm trying to upload some files to my server via command line, a prompt had showed:

The server supports encrypted connections. Do you want to switch to FTP-SSL?

There's an option to dismiss all prompts and warnings with Yes by default: -y.
What about No? I've tried -n but got Unrecognized option.
Futher more, if a command invoke multiple prompts, how to automatically answer No then Yes? For example:

FTP connection opened…
The server supports encrypted connections. Do you want to switch to FTP-SSL? Please contact your web hosting service provider for assistance.
Continue (y) or Change (n):  (y/n): n

The certificate for this server has expired. You might be connecting to a server that is pretending to be 10.94.5.5 which could put your confidential information at risk. Would you like to connect to the server anyway? (y/n): y

Something like --dismiss ny needed.

Thanks!

@ylazy ylazy changed the title [CLI] Dismiss all prompts and warnings with No by default. [CLI] Dismiss prompts and warnings with different answers Jan 9, 2025
@dkocher dkocher added cli Command Line Interface feature labels Jan 9, 2025
@dkocher dkocher changed the title [CLI] Dismiss prompts and warnings with different answers Dismiss prompts and warnings with different answers Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Command Line Interface feature
Projects
None yet
Development

No branches or pull requests

2 participants