mirror of
https://github.com/restic/restic.git
synced 2026-05-28 04:45:24 +00:00
don't load password when autocompleting CLI commands
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user