From b315cf104966cccdbab857b74e5c1f0bd7662fa6 Mon Sep 17 00:00:00 2001 From: sharifelgamal Date: Thu, 29 Mar 2018 11:54:51 -0700 Subject: [PATCH] adding user command to switch --- pkg/commands/commands.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/commands/commands.go b/pkg/commands/commands.go index 08fa3ceb1..0c4eef17d 100644 --- a/pkg/commands/commands.go +++ b/pkg/commands/commands.go @@ -50,6 +50,8 @@ func GetCommand(cmd instructions.Command, buildcontext string) (DockerCommand, e return &EntrypointCommand{cmd: c}, nil case *instructions.LabelCommand: return &LabelCommand{cmd: c}, nil + case *instructions.UserCommand: + return &UserCommand{cmd: c}, nil } return nil, errors.Errorf("%s is not a supported command", cmd.Name()) }