mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-24 09:50:08 +00:00
fix: sort output of 'argocd-util resource-overrides action list' command (#3649)
This commit is contained in:
parent
23bf07d206
commit
91d5d7e37b
1 changed files with 3 additions and 0 deletions
|
|
@ -487,6 +487,9 @@ argocd-util settings resource-overrides action list /tmp/deploy.yaml --argocd-cm
|
|||
|
||||
availableActions, err := luaVM.ExecuteResourceActionDiscovery(&res, discoveryScript)
|
||||
errors.CheckError(err)
|
||||
sort.Slice(availableActions, func(i, j int) bool {
|
||||
return availableActions[i].Name < availableActions[j].Name
|
||||
})
|
||||
|
||||
w := tabwriter.NewWriter(os.Stdout, 0, 0, 2, ' ', 0)
|
||||
_, _ = fmt.Fprintf(w, "NAME\tENABLED\n")
|
||||
|
|
|
|||
Loading…
Reference in a new issue