2019-05-31 08:27:41 -04:00
|
|
|
//go:generate struct-markdown
|
|
|
|
|
2014-03-12 09:12:20 -04:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
2017-04-04 16:39:01 -04:00
|
|
|
"github.com/hashicorp/packer/template/interpolate"
|
2014-03-12 09:12:20 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
type ExportOpts struct {
|
2019-05-28 11:50:58 -04:00
|
|
|
// Additional options to pass to the
|
2019-06-06 10:29:25 -04:00
|
|
|
// VBoxManage
|
|
|
|
// export. This
|
|
|
|
// can be useful for passing product information to include in the resulting
|
|
|
|
// appliance file. Packer JSON configuration file example:
|
2019-05-28 11:50:58 -04:00
|
|
|
ExportOpts []string `mapstructure:"export_opts" required:"false"`
|
2014-03-12 09:12:20 -04:00
|
|
|
}
|
|
|
|
|
2015-05-27 17:01:08 -04:00
|
|
|
func (c *ExportOpts) Prepare(ctx *interpolate.Context) []error {
|
2014-03-13 23:12:50 -04:00
|
|
|
if c.ExportOpts == nil {
|
|
|
|
c.ExportOpts = make([]string, 0)
|
2014-03-12 09:12:20 -04:00
|
|
|
}
|
|
|
|
|
2015-05-27 17:01:08 -04:00
|
|
|
return nil
|
2014-03-12 09:12:20 -04:00
|
|
|
}
|