feat(secrets): Sort list output
Some checks failed
continuous-integration/drone/pr Build is failing

This is usefull for scripting.
This commit is contained in:
2025-08-25 12:54:20 +02:00
parent e92ff6e013
commit c9e293bde2
2 changed files with 11 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import (
"fmt"
"io"
"os"
"sort"
"strconv"
"strings"
@ -435,6 +436,10 @@ var AppSecretLsCommand = &cobra.Command{
log.Fatal(err)
}
// Sort secrets to ensure reproducible output
sort.Slice(secStats, func(i, j int) bool {
return secStats[i].LocalName < secStats[j].LocalName
})
var rows [][]string
for _, secStat := range secStats {
row := []string{