forked from hashicorp/packer-plugin-alicloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
26 lines (22 loc) · 667 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
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package main
import (
"fmt"
"os"
ecsbuilder "github.com/hashicorp/packer-plugin-alicloud/builder/ecs"
importpp "github.com/hashicorp/packer-plugin-alicloud/post-processor/alicloud-import"
version "github.com/hashicorp/packer-plugin-alicloud/version"
"github.com/hashicorp/packer-plugin-sdk/plugin"
)
func main() {
pps := plugin.NewSet()
pps.RegisterBuilder("ecs", new(ecsbuilder.Builder))
pps.RegisterPostProcessor("import", new(importpp.PostProcessor))
pps.SetVersion(version.PluginVersion)
err := pps.Run()
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
}