From 7331912b1042be174b1562dad268005bb8b33662 Mon Sep 17 00:00:00 2001 From: Yonghwan SO Date: Fri, 29 Apr 2022 23:05:56 +0900 Subject: [PATCH] missing commits --- README.md | 5 ++++- cmd/bogo/main.go | 4 ++-- makefile | 6 ++++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4b0a597..c4a32db 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,10 @@ [![Coverage Status](https://coveralls.io/repos/github/hyeoncheon/bogo/badge.svg?branch=main)](https://coveralls.io/github/hyeoncheon/bogo?branch=main) [![Maintainability](https://api.codeclimate.com/v1/badges/1a36b1292948783341d0/maintainability)](https://codeclimate.com/github/hyeoncheon/bogo/maintainability) [![Go Report Card](https://goreportcard.com/badge/github.com/hyeoncheon/bogo)](https://goreportcard.com/report/github.com/hyeoncheon/bogo) -[![Go Reference](https://pkg.go.dev/badge/github.com/hyeoncheon/bogo.svg)](https://pkg.go.dev/github.com/hyeoncheon/bogo) +[![Go Reference](https://img.shields.io/badge/go-reference-blue)](https://pkg.go.dev/github.com/hyeoncheon/bogo) + +[![GitHub license](https://img.shields.io/github/license/hyeoncheon/bogo)](https://github.com/hyeoncheon/bogo/blob/main/LICENSE.md) + Bogo is an event collector and reporter for the Hyeoncheon project.cw It will be a successor of Kyeong which was ruby based event collector. diff --git a/cmd/bogo/main.go b/cmd/bogo/main.go index 767621c..51af5f2 100644 --- a/cmd/bogo/main.go +++ b/cmd/bogo/main.go @@ -47,13 +47,13 @@ func main() { if showVersion { fmt.Println("bogo", bogo.Version) - os.Exit(1) + os.Exit(0) } if showHelp { fmt.Println("bogo", bogo.Version) getopt.Usage() - os.Exit(1) + os.Exit(0) } c, _ := common.NewDefaultContext(&opts) diff --git a/makefile b/makefile index 7ca4f0c..cca506c 100644 --- a/makefile +++ b/makefile @@ -22,3 +22,9 @@ lint-hard: test: go test -race -coverprofile=coverage.txt -covermode=atomic ./... + +build: + go build -o bogo ./cmd/bogo/ + strip bogo + ./bogo -v version +