Closed abitrolly closed 4 months ago
vale 3.6.0
Each time vale --help is invoked, the commands are shown randomly.
vale --help
It is because the command list is stored in unordered map
https://github.com/errata-ai/vale/blob/3b6c8db432b9181f2ab836e9c68552743f72d139/cmd/vale/command.go#L30-L39
Here is the playground that illustrates this https://go.dev/play/p/7k1NNMjYxuv
The fix is to use list of strings - https://go.dev/play/p/dukMpLM7EHU
@jdkato I like my solution in #856 more, because it gives control over argument order.
Check for existing issues
Environment
vale 3.6.0
Describe the bug / provide steps to reproduce it
Each time
vale --help
is invoked, the commands are shown randomly.It is because the command list is stored in unordered map
https://github.com/errata-ai/vale/blob/3b6c8db432b9181f2ab836e9c68552743f72d139/cmd/vale/command.go#L30-L39
Here is the playground that illustrates this https://go.dev/play/p/7k1NNMjYxuv