diff --git a/cmd/start.go b/cmd/start.go index 828acc1..4d373e8 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -47,11 +47,7 @@ microcks start --name [name of you container/instance]`, instance = &config.Instance{} } - if instance.Status == "Running" { - fmt.Printf("Microcks instance with name %s is already running", name) - return - } - + switch instance.Status { case "Running": fmt.Printf("Microcks instance with name %s is already running", name) @@ -143,8 +139,8 @@ microcks start --name [name of you container/instance]`, fmt.Printf("Microcks started successfully at %s\n", server) }, } - startCmd.Flags().StringVar(&name, "name", "microcks", "name for your Microcks instance") - startCmd.Flags().StringVar(&hostPort, "port", "8585", "Host port to expose Microcks") + startCmd.Flags().StringVar(&name, "name", "microcks", "name for you microcks instance") + startCmd.Flags().StringVar(&hostPort, "port", "8585", "Host port to expose the Microcks instance (default: 8585)") startCmd.Flags().StringVar(&imageName, "image", "quay.io/microcks/microcks-uber:latest-native", "image which will be used to create a container") startCmd.Flags().BoolVar(&autoRemove, "rm", false, "mimic of '--rm' flag of Docker to automatically remove the container when it exits") startCmd.Flags().StringVar(&driver, "driver", "docker", "use --driver to change driver from docker to podman")