mirror of
https://github.com/yannh/kubeconform.git
synced 2026-04-17 01:29:52 +00:00
Move version to main package
This commit is contained in:
parent
9410471142
commit
c3e6205f15
3 changed files with 4 additions and 7 deletions
|
|
@ -8,8 +8,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
var version = "development"
|
||||
|
||||
type Config struct {
|
||||
Cache string
|
||||
CPUProfileFile string
|
||||
|
|
@ -102,9 +100,5 @@ func FromFlags(progName string, args []string) (Config, string, error) {
|
|||
flags.Usage()
|
||||
}
|
||||
|
||||
if c.Version {
|
||||
fmt.Println(version)
|
||||
}
|
||||
|
||||
return c, buf.String(), err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue