if err := HTTPCli.Post(url, &sdks, &newSdk); err != nil {
return cli.NewExitError(err, 1)
}
Log.Debugf("Result of %s: %v", url, newSdk)
newSdk := xaapiv1.SDK{}
if err := HTTPCli.Post(url, &sdks, &newSdk); err != nil {
return cli.NewExitError(err, 1)
}
Log.Debugf("Result of %s: %v", url, newSdk)
- fmt.Printf("Installation of '%s' SDK (id %v) successfully started.\n", newSdk.Name, newSdk.ID)
+ fmt.Printf("Installation of '%s' SDK successfully started.\n", newSdk.Name)
+ // TODO: trap CTRL+C and print question: "Installation of xxx is in progress, press 'a' to abort, 'b' to continue in background or 'c' to continue installation"
// Wait exit
select {
case res := <-exitChan:
if res.code == 0 {
Log.Debugln("Exit successfully")
// Wait exit
select {
case res := <-exitChan:
if res.code == 0 {
Log.Debugln("Exit successfully")
+ fmt.Println("SDK ID " + newSdk.ID + " successfully installed.")