Make key completion work for both kv-v1 and kv-v2 (#16553)

Co-authored-by: Kieron Browne <kbrowne@vmware.com>
Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
Co-authored-by: Danail Branekov <danailster@gmail.com>
This commit is contained in:
georgethebeatle
2022-09-13 19:11:00 +03:00
committed by GitHub
parent 1e69ebe7ff
commit 3088b139f8
8 changed files with 160 additions and 21 deletions

View File

@@ -80,7 +80,7 @@ func (c *KVGetCommand) Flags() *FlagSets {
}
func (c *KVGetCommand) AutocompleteArgs() complete.Predictor {
return nil
return c.PredictVaultFiles()
}
func (c *KVGetCommand) AutocompleteFlags() complete.Flags {