Coral, a Cobra fork with nearly all its features, but only 4 dependencies
1–10 of 17 posts
Re: Coral, a Cobra fork with nearly all its features, but only 4 dependencies
#2Re: Coral, a Cobra fork with nearly all its features, but only 4 dependencies
#3Re: Coral, a Cobra fork with nearly all its features, but only 4 dependencies
#4Re: Coral, a Cobra fork with nearly all its features, but only 4 dependencies
#5This looks amazing. Viper was something I’ve always removed from my projects as they’re simple tools usually where configuration files don’t make sense, so I really appreciate you sharing this. Excited to see where it goes!
Re: Coral, a Cobra fork with nearly all its features, but only 4 dependencies
#6See: - [0] https://github.com/muesli/coral/blob/master/go.mod - [1] https://github.com/spf13/cobra/blob/master/go.mod
Re: Coral, a Cobra fork with nearly all its features, but only 4 dependencies
#7Christian Muehlhaeuser (@muesli) is an outstanding 10x developer and all his projects and contributions are pretty remarkable!
Re: Coral, a Cobra fork with nearly all its features, but only 4 dependencies
#8 It's easy to use Coral as a drop-in replacement for Cobra in existing projects, just let gofmt do the heavy lifting for you:
gofmt -w -r '"github.com/spf13/cobra" -> "github.com/muesli/coral"' .
gofmt -w -r '"github.com/spf13/cobra/doc" -> "github.com/muesli/coral/doc"' .
gofmt -w -r 'cobra -> coral' .
go mod tidy
Having implemented something to do a similar one off refactor in java for thousands of files, that is a breath of fresh air. In java i had to go code -> AST -> perform manipulations -> generate code from AST (with inevitable long PR’s due to generated code not matching 1:1 with parsed original). After having gone through that i think if i had to repeat again with java I’d probably try harder to use structural find and replace.Re: Coral, a Cobra fork with nearly all its features, but only 4 dependencies
#94 ... of its 5 dependencies. It's just missing Viper. We should do a better job with the title here. See: - [0] https://github.com/muesli/coral/blob/master/go.mod - [1] https://github.com/spf13/cobra/blob/master/go.mod
Re: Coral, a Cobra fork with nearly all its features, but only 4 dependencies
#104 ... of its 5 dependencies. It's just missing Viper. We should do a better job with the title here. See: - [0] https://github.com/muesli/coral/blob/master/go.mod - [1] https://github.com/spf13/cobra/blob/master/go.mod