0
0
mirror of https://github.com/thegeeklab/wp-plugin-go.git synced 2024-11-24 03:00:40 +00:00

fix: fix global urfave category flags (#29)

This commit is contained in:
Robert Kaussow 2023-02-08 14:07:32 +01:00 committed by GitHub
parent 6b1b8825af
commit 5f5cc89efb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,19 +11,19 @@ import (
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )
const (
FlagsBuildCategory = "Drone Build Flags"
FlagsRepoCategory = "Drone Repo Flags"
FlagsCommitCategory = "Drone Commit Flags"
FlagsStageCategory = "Drone Stage Flags"
FlagsStepCategory = "Drone Step Flags"
FlagsVersioningCategory = "Drone Versioning Flags"
FlagsSystemCategory = "Drone System Flags"
FlagsPluginCategory = "Plugin Flags"
)
// Flags has the cli.Flags for the Drone plugin. // Flags has the cli.Flags for the Drone plugin.
func Flags() []cli.Flag { func Flags() []cli.Flag {
var (
FlagsBuildCategory = "Drone Build Flags"
FlagsRepoCategory = "Drone Repo Flags"
FlagsCommitCategory = "Drone Commit Flags"
FlagsStageCategory = "Drone Stage Flags"
FlagsStepCategory = "Drone Step Flags"
FlagsVersioningCategory = "Drone Versioning Flags"
FlagsSystemCategory = "Drone System Flags"
FlagsPluginCategory = "Plugin Flags"
)
flags := []cli.Flag{} flags := []cli.Flag{}
flags = append(flags, buildFlags(FlagsBuildCategory)...) flags = append(flags, buildFlags(FlagsBuildCategory)...)