Include completion descriptions for keypairs

This commit is contained in:
John Gardiner Myers 2021-07-03 19:52:53 -07:00
parent 577c7ecbe3
commit ba7641b97d
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ func completePromoteKeyset(options *PromoteKeypairOptions, args []string, toComp
func completeKeypairID(keyset *fi.Keyset, filter func(keyset *fi.Keyset, item *fi.KeysetItem) bool) (completions []string, directive cobra.ShellCompDirective) {
for _, item := range keyset.Items {
if filter(keyset, item) {
completions = append(completions, item.Id)
completions = append(completions, fmt.Sprintf("%s\tissued %s", item.Id, item.Certificate.Certificate.NotBefore.Format("2006-01-02 15:04:05")))
}
}