2021-02-23 16:46:11 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/xenserver/packer-builder-xenserver/builder/xenserver/iso"
|
|
|
|
"github.com/xenserver/packer-builder-xenserver/builder/xenserver/xva"
|
2024-06-05 00:54:42 -05:00
|
|
|
"github.com/xenserver/packer-builder-xenserver/version"
|
2021-02-23 16:46:11 -06:00
|
|
|
|
|
|
|
"github.com/hashicorp/packer-plugin-sdk/plugin"
|
|
|
|
)
|
2021-02-23 17:02:50 -06:00
|
|
|
|
2021-02-23 16:46:11 -06:00
|
|
|
func main() {
|
|
|
|
pps := plugin.NewSet()
|
|
|
|
pps.RegisterBuilder("iso", new(iso.Builder))
|
|
|
|
pps.RegisterBuilder("xva", new(xva.Builder))
|
2024-06-05 00:46:35 -05:00
|
|
|
pps.SetVersion(version.PluginVersion)
|
2021-02-23 16:46:11 -06:00
|
|
|
err := pps.Run()
|
|
|
|
if err != nil {
|
|
|
|
fmt.Fprintln(os.Stderr, err.Error())
|
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
}
|