pkg/util/krew/main.go
Function main
has 70 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func main() {
// git describe --tags `git rev-list --tags --max-count=1`
commitId, err2 := exec.Command("git", "rev-list", "--tags", "--max-count=1").Output()
if err2 != nil {
panic(err2)