Files
fb8fa2b0fe [COMPLIANCE] Add/Update Copyright Headers (#13699)
* [COMPLIANCE] Add/Update Copyright Headers

* make generate update

* make generate

---------

Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
Co-authored-by: sanya <[email protected]>
Co-authored-by: Sanya <[email protected]>
2026-09-15 17:10:54 +05:30

35 lines
1.1 KiB
Go

// Copyright IBM Corp. 2024, 2026
// SPDX-License-Identifier: MPL-2.0
package main
import (
"fmt"
"os"
"github.com/hashicorp/packer-plugin-sdk/plugin"
"github.com/hashicorp/packer-plugin-tester/builder/dynamic"
dynamicDS "github.com/hashicorp/packer-plugin-tester/datasource/dynamic"
"github.com/hashicorp/packer-plugin-tester/datasource/parrot"
"github.com/hashicorp/packer-plugin-tester/datasource/sleeper"
dynamicPP "github.com/hashicorp/packer-plugin-tester/post-processor/dynamic"
dynamicProv "github.com/hashicorp/packer-plugin-tester/provisioner/dynamic"
"github.com/hashicorp/packer-plugin-tester/version"
)
func main() {
pps := plugin.NewSet()
pps.RegisterBuilder("dynamic", new(dynamic.Builder))
pps.RegisterProvisioner("dynamic", new(dynamicProv.Provisioner))
pps.RegisterPostProcessor("dynamic", new(dynamicPP.PostProcessor))
pps.RegisterDatasource("dynamic", new(dynamicDS.Datasource))
pps.RegisterDatasource("parrot", new(parrot.Datasource))
pps.RegisterDatasource("sleeper", new(sleeper.Datasource))
pps.SetVersion(version.PluginVersion)
err := pps.Run()
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
}