Skip to content

Commit

Permalink
feat: added array to detect input, create container
Browse files Browse the repository at this point in the history
  • Loading branch information
Molaryy committed Oct 19, 2023
1 parent a09e30c commit 2d406b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions create-container/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2d406b5

Please sign in to comment.