generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmain.go
31 lines (26 loc) · 858 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package main
import (
"fmt"
"os"
"github.com/hashicorp/packer-plugin-sdk/plugin"
"github.com/Parallels/packer-plugin-parallels/builder/parallels/ipsw"
"github.com/Parallels/packer-plugin-parallels/builder/parallels/iso"
"github.com/Parallels/packer-plugin-parallels/builder/parallels/macvm"
"github.com/Parallels/packer-plugin-parallels/builder/parallels/pvm"
"github.com/Parallels/packer-plugin-parallels/version"
)
func main() {
pps := plugin.NewSet()
pps.SetVersion(version.PluginVersion)
pps.RegisterBuilder("iso", new(iso.Builder))
pps.RegisterBuilder("pvm", new(pvm.Builder))
pps.RegisterBuilder("macvm", new(macvm.Builder))
pps.RegisterBuilder("ipsw", new(ipsw.Builder))
err := pps.Run()
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
}