1
0
mirror of https://github.com/rancher/os.git synced 2025-09-16 06:59:12 +00:00

get started on the new cli

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-03-06 12:52:52 +10:00
parent 93cd0877dd
commit dc540a0cf0
6 changed files with 195 additions and 41 deletions

View File

@@ -153,7 +153,7 @@ func installAction(c *cli.Context) error {
return err
}
if !kexec && reboot && (force || yes("Continue with reboot")) {
if !kexec && reboot && (force || util.Yes("Continue with reboot")) {
log.Info("Rebooting")
power.Reboot()
}
@@ -165,7 +165,7 @@ func runInstall(image, installType, cloudConfig, device, kappend string, force,
fmt.Printf("Installing from %s\n", image)
if !force {
if util.IsRunningInTty() && !yes("Continue") {
if util.IsRunningInTty() && !util.Yes("Continue") {
log.Infof("Not continuing with installation due to user not saying 'yes'")
os.Exit(1)
}