metaverse / truss

Truss helps you build go-kit microservices without having to worry about writing or maintaining boilerplate code.
Other
734 stars 143 forks source link

Sort CLI flags returned by AllFlags() so generated code is stable. #269

Closed TyeMcQueen closed 5 years ago

TyeMcQueen commented 5 years ago

This is small change to add minimal sorting to AllFlags() so regenerating the code with no changes to the protobuf def'n does not generate differences due to random sorting of the lines declaring the CLI flag variables. Also reduces the number of changes generated when small changes are made to the protobuf def'n.

zaquestion commented 5 years ago

Thanks, this will be a nice QoL improvement :)