urfave/cli

bug report: `cli.CommandsByName` not exist in v3-alpha4

Passer6y opened this issue · 1 comments

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

sort.Sort(cli.CommandsByName(cli.Commands))

Solution description

Describe alternatives you've considered

@Passer6y You can do

rootCommand := Command{...}
sort.Sort(rootCommand.Commands)