github.phpd.cn/hashicorp/packer@v1.3.2/builder/parallels/common/prlctl_config.go (about) 1 package common 2 3 import ( 4 "github.com/hashicorp/packer/template/interpolate" 5 ) 6 7 // PrlctlConfig contains the configuration for running "prlctl" commands 8 // before the VM start. 9 type PrlctlConfig struct { 10 Prlctl [][]string `mapstructure:"prlctl"` 11 } 12 13 // Prepare sets the default value of "Prlctl" property. 14 func (c *PrlctlConfig) Prepare(ctx *interpolate.Context) []error { 15 if c.Prlctl == nil { 16 c.Prlctl = make([][]string, 0) 17 } 18 19 return nil 20 }