mirror of
https://github.com/thegeeklab/wp-git-action.git
synced 2024-11-25 09:00:40 +00:00
28 lines
561 B
Go
28 lines
561 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/thegeeklab/wp-git-action/plugin"
|
|
wp "github.com/thegeeklab/wp-plugin-go/plugin"
|
|
)
|
|
|
|
//nolint:gochecknoglobals
|
|
var (
|
|
BuildVersion = "devel"
|
|
BuildDate = "00000000"
|
|
)
|
|
|
|
func main() {
|
|
settings := &plugin.Settings{}
|
|
options := wp.Options{
|
|
Name: "wp-git-action",
|
|
Description: "Perform git actions.",
|
|
Version: BuildVersion,
|
|
VersionMetadata: fmt.Sprintf("date=%s", BuildDate),
|
|
Flags: settingsFlags(settings, wp.FlagsPluginCategory),
|
|
}
|
|
|
|
plugin.New(options, settings).Run()
|
|
}
|