generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 10
/
main.go
29 lines (24 loc) · 819 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
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package main
import (
"fmt"
"os"
"github.com/hashicorp/packer-plugin-sdk/plugin"
"github.com/hashicorp/packer-plugin-yandex/builder/yandex"
yandexexport "github.com/hashicorp/packer-plugin-yandex/post-processor/yandex-export"
yandeximport "github.com/hashicorp/packer-plugin-yandex/post-processor/yandex-import"
"github.com/hashicorp/packer-plugin-yandex/version"
)
func main() {
pps := plugin.NewSet()
pps.RegisterBuilder(plugin.DEFAULT_NAME, new(yandex.Builder))
pps.RegisterPostProcessor("import", new(yandeximport.PostProcessor))
pps.RegisterPostProcessor("export", new(yandexexport.PostProcessor))
pps.SetVersion(version.PluginVersion)
err := pps.Run()
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
}