adding user command to switch
This commit is contained in:
parent
bc78e2b838
commit
b315cf1049
|
|
@ -50,6 +50,8 @@ func GetCommand(cmd instructions.Command, buildcontext string) (DockerCommand, e
|
||||||
return &EntrypointCommand{cmd: c}, nil
|
return &EntrypointCommand{cmd: c}, nil
|
||||||
case *instructions.LabelCommand:
|
case *instructions.LabelCommand:
|
||||||
return &LabelCommand{cmd: c}, nil
|
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())
|
return nil, errors.Errorf("%s is not a supported command", cmd.Name())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue