2022-11-27 14:33:39 +01:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2023-08-14 21:19:39 +02:00
|
|
|
"github.com/thegeeklab/wp-git-action/plugin"
|
|
|
|
wp "github.com/thegeeklab/wp-plugin-go/plugin"
|
2022-11-27 14:33:39 +01:00
|
|
|
)
|
|
|
|
|
2023-02-08 10:16:10 +01:00
|
|
|
//nolint:gochecknoglobals
|
2022-11-27 14:33:39 +01:00
|
|
|
var (
|
|
|
|
BuildVersion = "devel"
|
|
|
|
BuildDate = "00000000"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
settings := &plugin.Settings{}
|
2023-08-14 21:19:39 +02:00
|
|
|
options := wp.Options{
|
|
|
|
Name: "wp-git-action",
|
|
|
|
Description: "Perform git operations.",
|
|
|
|
Version: BuildVersion,
|
|
|
|
VersionMetadata: fmt.Sprintf("date=%s", BuildDate),
|
|
|
|
Flags: settingsFlags(settings, wp.FlagsPluginCategory),
|
2022-11-27 14:33:39 +01:00
|
|
|
}
|
|
|
|
|
2023-08-14 21:19:39 +02:00
|
|
|
plugin.New(options, settings).Run()
|
2022-11-27 14:33:39 +01:00
|
|
|
}
|