forked from hashicorp/packer-plugin-tencentcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
27 lines (22 loc) · 647 Bytes
/
main.go
File metadata and controls
27 lines (22 loc) · 647 Bytes
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
// 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-tencentcloud/builder/tencentcloud/cvm"
"github.com/hashicorp/packer-plugin-tencentcloud/datasource/tencentcloud/image"
"github.com/hashicorp/packer-plugin-tencentcloud/version"
)
func main() {
pps := plugin.NewSet()
pps.RegisterBuilder("cvm", new(cvm.Builder))
pps.RegisterDatasource("image", new(image.Datasource))
pps.SetVersion(version.PluginVersion)
err := pps.Run()
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
}