commit 2fdf0c7130a64552a7e303284799d12e0446da23
parent 554f5a8a640f55604937386ba9fc8bf4cd626c28
Author: Sean Enck <sean@ttypty.com>
Date: Mon, 31 Jul 2023 18:22:01 -0400
multiline is a readonly command
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/internal/app/completions.go b/internal/app/completions.go
@@ -52,7 +52,7 @@ func GenerateCompletions(isBash, defaults bool, exe string) ([]string, error) {
MoveCommand: MoveCommand,
DoList: fmt.Sprintf("%s %s", exe, ListCommand),
DoTOTPList: fmt.Sprintf("%s %s %s", exe, TOTPCommand, TOTPListCommand),
- Options: []string{MultiLineCommand, EnvCommand, HelpCommand, ListCommand, ShowCommand, VersionCommand, JSONCommand},
+ Options: []string{EnvCommand, HelpCommand, ListCommand, ShowCommand, VersionCommand, JSONCommand},
}
isReadOnly := false
isClip := true
@@ -86,7 +86,7 @@ func GenerateCompletions(isBash, defaults bool, exe string) ([]string, error) {
c.TOTPSubCommands = append(c.TOTPSubCommands, TOTPClipCommand)
}
if !c.ReadOnly {
- c.Options = append(c.Options, MoveCommand, RemoveCommand, InsertCommand)
+ c.Options = append(c.Options, MoveCommand, RemoveCommand, InsertCommand, MultiLineCommand)
c.TOTPSubCommands = append(c.TOTPSubCommands, TOTPInsertCommand)
}
if c.CanTOTP {