diff --git a/create-container/main.go b/create-container/main.go index 7152f96..5db2fa1 100644 --- a/create-container/main.go +++ b/create-container/main.go @@ -10,15 +10,16 @@ func runContainer() { } func main() { - var cmds [1] []string = ["tes"] + var cmds [1]string + cmds[0] = "run" if len(os.Args) < 2 { panic("Provide at leas 1 argument") } fmt.Println(len(os.Args)) switch os.Args[1] { - case "run": + case cmds[0]: runContainer() default: panic("Provide at leas 1 argument")