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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue