Closed Passer6y closed 10 months ago
I want to following code to sort cli command, it works in v2, but not exist in v3-alpha4
sort.Sort(cli.CommandsByName(cli.Commands))
@Passer6y You can do
rootCommand := Command{...} sort.Sort(rootCommand.Commands)
Checklist
What problem does this solve?
I want to following code to sort cli command, it works in v2, but not exist in v3-alpha4
Solution description
Describe alternatives you've considered