don't load password when autocompleting CLI commands

This commit is contained in:
Michael Eischer
2023-10-19 22:35:24 +02:00
parent d6917c7e00
commit cd09ef4614
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ The full documentation can be found at https://restic.readthedocs.io/ .
// user for authentication).
func needsPassword(cmd string) bool {
switch cmd {
case "cache", "generate", "help", "options", "self-update", "version":
case "cache", "generate", "help", "options", "self-update", "version", "__complete":
return false
default:
return true