Merge pull request #405 from marcosnils/spec_version
Add spec version to runC version cli
This commit is contained in:
commit
59f3066c39
3
main.go
3
main.go
|
@ -1,6 +1,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
|
@ -37,7 +38,7 @@ func main() {
|
||||||
app := cli.NewApp()
|
app := cli.NewApp()
|
||||||
app.Name = "runc"
|
app.Name = "runc"
|
||||||
app.Usage = usage
|
app.Usage = usage
|
||||||
app.Version = version
|
app.Version = fmt.Sprintf("%s\nspec version %s", version, specs.Version)
|
||||||
app.Flags = []cli.Flag{
|
app.Flags = []cli.Flag{
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "id",
|
Name: "id",
|
||||||
|
|
Loading…
Reference in New Issue