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:
parent
6b1b8825af
commit
5f5cc89efb
@ -11,19 +11,19 @@ import (
|
||||
"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.
|
||||
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 = append(flags, buildFlags(FlagsBuildCategory)...)
|
||||
|
Loading…
Reference in New Issue
Block a user