packer-plugin-xenserver/main.go
Dom Del Nano c411df4b02 Use correct version package from the main package
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
2024-06-04 22:54:42 -07:00

25 lines
550 B
Go

package main
import (
"fmt"
"os"
"github.com/xenserver/packer-builder-xenserver/builder/xenserver/iso"
"github.com/xenserver/packer-builder-xenserver/builder/xenserver/xva"
"github.com/xenserver/packer-builder-xenserver/version"
"github.com/hashicorp/packer-plugin-sdk/plugin"
)
func main() {
pps := plugin.NewSet()
pps.RegisterBuilder("iso", new(iso.Builder))
pps.RegisterBuilder("xva", new(xva.Builder))
pps.SetVersion(version.PluginVersion)
err := pps.Run()
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
}