Merge pull request #561 from stevvooe/correct-versioning
version: finish version setup
This commit is contained in:
commit
a463ba33fc
5 changed files with 28 additions and 21 deletions
|
@ -40,6 +40,12 @@ var (
|
|||
global = log.WithModule(gocontext.Background(), "containerd")
|
||||
)
|
||||
|
||||
func init() {
|
||||
cli.VersionPrinter = func(c *cli.Context) {
|
||||
fmt.Println(c.App.Name, containerd.Package, c.App.Version)
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
app := cli.NewApp()
|
||||
app.Name = "containerd"
|
||||
|
|
|
@ -9,6 +9,12 @@ import (
|
|||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
func init() {
|
||||
cli.VersionPrinter = func(c *cli.Context) {
|
||||
fmt.Println(c.App.Name, containerd.Package, c.App.Version)
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
app := cli.NewApp()
|
||||
app.Name = "ctr"
|
||||
|
|
3
cmd/dist/main.go
vendored
3
cmd/dist/main.go
vendored
|
@ -15,6 +15,9 @@ var (
|
|||
)
|
||||
|
||||
func main() {
|
||||
cli.VersionPrinter = func(c *cli.Context) {
|
||||
fmt.Println(os.Args[0], containerd.Package, containerd.Version)
|
||||
}
|
||||
app := cli.NewApp()
|
||||
app.Name = "dist"
|
||||
app.Version = containerd.Version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue