mirror of
https://github.com/hanzokms/packer-plugin.git
synced 2026-10-30 20:38:34 +00:00
22 lines
419 B
Go
22 lines
419 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/hashicorp/packer-plugin-sdk/plugin"
|
|
"github.com/hanzokms/packer-plugin/datasource/secrets"
|
|
"github.com/hanzokms/packer-plugin/version"
|
|
)
|
|
|
|
func main() {
|
|
pps := plugin.NewSet()
|
|
pps.RegisterDatasource("secrets", new(secrets.Datasource))
|
|
pps.SetVersion(version.PluginVersion)
|
|
err := pps.Run()
|
|
if err != nil {
|
|
fmt.Fprintln(os.Stderr, err.Error())
|
|
os.Exit(1)
|
|
}
|
|
}
|