Added password prompt with asterisks displayed while typing

This commit is contained in:
2026-06-26 07:40:07 +02:00
parent d6118894a0
commit 3837258d47
3 changed files with 212 additions and 2 deletions

View File

@ -25,7 +25,7 @@ From repository root:
php src/SFTPsync.php --host example.com --user myuser --password mypass --sync ./local /var/www/app
```
If `--host`, `--user`, or `--password` is missing, the script asks for it interactively (TTY only).
If `--host`, `--user`, or `--password` is missing, the script asks for it interactively (TTY only). Interactive password input is hidden or masked when the terminal supports it.
## CLI Usage