in plugin/step/command/command.go [180:197]
func Loader(config map[string]interface{}) (go2chef.Step, error) {
source, err := go2chef.GetSourceFromStepConfig(config)
if err != nil {
return nil, err
}
c := &Step{
logger: go2chef.GetGlobalLogger(),
TimeoutSeconds: 0,
Command: make([]string, 0),
Env: make(map[string]string),
source: source,
}
if err := mapstructure.Decode(config, c); err != nil {
return nil, err
}
return c, nil
}