new service: version

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
Akihiro Suda
2017-04-27 07:46:23 +00:00
parent b53105ed25
commit 2562aca1a3
14 changed files with 607 additions and 28 deletions

6
cmd/dist/main.go vendored
View File

@@ -7,7 +7,7 @@ import (
"time"
"github.com/Sirupsen/logrus"
"github.com/containerd/containerd"
"github.com/containerd/containerd/version"
"github.com/urfave/cli"
)
@@ -17,7 +17,7 @@ var (
func init() {
cli.VersionPrinter = func(c *cli.Context) {
fmt.Println(c.App.Name, containerd.Package, c.App.Version)
fmt.Println(c.App.Name, version.Package, c.App.Version)
}
}
@@ -33,7 +33,7 @@ func appContext() (contextpkg.Context, contextpkg.CancelFunc) {
func main() {
app := cli.NewApp()
app.Name = "dist"
app.Version = containerd.Version
app.Version = version.Version
app.Usage = `
___ __
____/ (_)____/ /_