feat(completions): wire up key completions for key commands

This commit is contained in:
Lewis Wynne 2026-03-16 16:31:57 +00:00
parent 84b1c67c72
commit bc0b98c7f9
5 changed files with 32 additions and 25 deletions

View file

@ -22,9 +22,10 @@ Binary values are presented as base64 for editing and decoded back on save.
Metadata flags (--ttl, --encrypt, --decrypt) can be passed alongside the edit
to modify metadata in the same operation.`,
Aliases: []string{"e"},
Args: cobra.ExactArgs(1),
RunE: edit,
Aliases: []string{"e"},
Args: cobra.ExactArgs(1),
ValidArgsFunction: completeKeys,
RunE: edit,
SilenceUsage: true,
}