2019-05-31 14:27:41 +02:00
|
|
|
//go:generate struct-markdown
|
|
|
|
|
2014-03-12 10:12:20 -03:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
2017-04-04 13:39:01 -07:00
|
|
|
"github.com/hashicorp/packer/template/interpolate"
|
2014-03-12 10:12:20 -03:00
|
|
|
)
|
|
|
|
|
|
|
|
type ExportOpts struct {
|
2019-05-28 17:50:58 +02:00
|
|
|
// Additional options to pass to the
|
2019-06-06 16:29:25 +02: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 17:50:58 +02:00
|
|
|
ExportOpts []string `mapstructure:"export_opts" required:"false"`
|
2014-03-12 10:12:20 -03:00
|
|
|
}
|
|
|
|
|
2015-05-27 14:01:08 -07:00
|
|
|
func (c *ExportOpts) Prepare(ctx *interpolate.Context) []error {
|
2014-03-14 00:12:50 -03:00
|
|
|
if c.ExportOpts == nil {
|
|
|
|
c.ExportOpts = make([]string, 0)
|
2014-03-12 10:12:20 -03:00
|
|
|
}
|
|
|
|
|
2015-05-27 14:01:08 -07:00
|
|
|
return nil
|
2014-03-12 10:12:20 -03:00
|
|
|
}
|