Use protoversion for containerd version

Signed-off-by: Peter Edge <peter.edge@gmail.com>
This commit is contained in:
Peter Edge 2015-12-18 13:06:04 +00:00
parent 1d63236c27
commit d2e319523d
5 changed files with 48 additions and 4 deletions

View file

@ -14,7 +14,7 @@ const Usage = `High performance container daemon cli`
func main() {
app := cli.NewApp()
app.Name = "ctr"
app.Version = containerd.Version
app.Version = containerd.Version.VersionString()
app.Usage = Usage
app.Authors = []cli.Author{
{
@ -37,6 +37,7 @@ func main() {
CheckpointCommand,
ContainersCommand,
EventsCommand,
VersionCommand,
}
app.Before = func(context *cli.Context) error {
if context.GlobalBool("debug") {