aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/breml/errchkjson/version.go
blob: 77d8ef8bb0b2895e522943a4a22e17c2b47201d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package errchkjson

import (
	"fmt"
	"os"
)

var Version = "errchkjson version dev"

type versionFlag struct{}

func (versionFlag) IsBoolFlag() bool { return true }
func (versionFlag) Get() interface{} { return nil }
func (versionFlag) String() string   { return "" }
func (versionFlag) Set(s string) error {
	fmt.Println(Version)
	os.Exit(0)
	return nil
}