Skip to content

Commit a3a403e

Browse files
authored
sort secret types in survey (#234)
Signed-off-by: Nandor Kracser <[email protected]>
1 parent e3fdd06 commit a3a403e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/cli/command/secret/create.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"encoding/json"
2020
"fmt"
2121
"io/ioutil"
22+
"sort"
2223
"strings"
2324

2425
"emperror.dev/errors"
@@ -349,6 +350,8 @@ func surveySecretType(options *createSecretOptions, secretTypes map[string]pipel
349350
typeOptions = append(typeOptions, name)
350351
}
351352

353+
sort.Strings(typeOptions)
354+
352355
selectTypePrompt := &survey.Select{
353356
Message: "Choose secret type:",
354357
Options: typeOptions,

0 commit comments

Comments
 (0)