1
0
mirror of https://github.com/rancher/os.git synced 2025-09-17 07:30:42 +00:00

Initial fix to stop other containers before the console

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-07-28 11:50:07 +10:00
parent 5716be7a34
commit 67d932d9f8
8 changed files with 66 additions and 16 deletions

View File

@@ -28,7 +28,7 @@ func Shutdown() {
app := cli.NewApp()
app.Name = os.Args[0]
app.Usage = "Control and configure RancherOS"
app.Usage = fmt.Sprintf("%s RancherOS\nbuilt: %s", app.Name, config.BuildDate)
app.Version = config.Version
app.Author = "Rancher Labs, Inc."
app.EnableBashCompletion = true
@@ -136,6 +136,11 @@ func Shutdown() {
})
}
//TODO: add the time and msg flags...
app.HideHelp = true
log.Infof("%s, %s", app.Usage, app.Version)
fmt.Printf("%s, %s", app.Usage, app.Version)
app.Run(os.Args)
}