commit 9eb2ab1f4b5bfb6ce284dbc700471fb9bc926a8a
parent 8c2660e464d603826a937d4c9a8b3e8fc60ec1a6
Author: Sean Enck <sean@ttypty.com>
Date: Sat, 24 Dec 2022 11:00:42 -0500
add completion
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/internal/cli/completions.bash b/internal/cli/completions.bash
@@ -27,7 +27,7 @@ _{{ $.Executable }}() {
{{end}}
;;
{{end}}
- "{{ $.ShowCommand }}" {{ if not $.ReadOnly }}| "{{ $.RemoveCommand }}" {{end}} {{ if $.CanClip }} | "{{ $.ClipCommand }}" {{end}})
+ "{{ $.ShowCommand }}" | "{{ $.StatsCommand }}" {{ if not $.ReadOnly }}| "{{ $.RemoveCommand }}" {{end}} {{ if $.CanClip }} | "{{ $.ClipCommand }}" {{end}})
opts=$({{ $.DoList }})
;;
esac
diff --git a/internal/cli/core.go b/internal/cli/core.go
@@ -88,6 +88,7 @@ type (
DoTOTPList string
DoList string
Executable string
+ StatsCommand string
}
)
@@ -130,6 +131,7 @@ func BashCompletions(defaults bool) ([]string, error) {
TOTPOnceCommand: TOTPOnceCommand,
ClipCommand: ClipCommand,
ShowCommand: ShowCommand,
+ StatsCommand: StatsCommand,
InsertMultiCommand: InsertMultiCommand,
InsertTOTPCommand: InsertTOTPCommand,
TOTPCommand: TOTPCommand,