Getting a --version flag for Cobra CLIs in Go, built with GoReleaser (2 mins read).

How to get Cobra to provide a --version flag when using GoReleaser.
Back to /posts/, 2023, February 2023.
Getting a --version flag for Cobra CLIs in Go, built with GoReleaser (2 mins read).

How to get Cobra to provide a --version flag when using GoReleaser.
← 24 February 2023 8 March 2023 →