You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/vendor/github.com/arukasio/cli/start.go

20 lines
370 B

package arukas
import (
"log"
)
func startContainer(containerID string, quiet bool) {
client := NewClientWithOsExitOnErr()
if err := client.Post(nil, "/containers/"+containerID+"/power", nil); err != nil {
client.Println(nil, "Failed to start the container")
log.Print(err)
ExitCode = 1
} else {
if !quiet {
client.Println(nil, "Starting...")
}
}
}