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,9 +11,7 @@ import (
|
|||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Flags has the cli.Flags for the Drone plugin.
|
const (
|
||||||
func Flags() []cli.Flag {
|
|
||||||
var (
|
|
||||||
FlagsBuildCategory = "Drone Build Flags"
|
FlagsBuildCategory = "Drone Build Flags"
|
||||||
FlagsRepoCategory = "Drone Repo Flags"
|
FlagsRepoCategory = "Drone Repo Flags"
|
||||||
FlagsCommitCategory = "Drone Commit Flags"
|
FlagsCommitCategory = "Drone Commit Flags"
|
||||||
@ -22,8 +20,10 @@ func Flags() []cli.Flag {
|
|||||||
FlagsVersioningCategory = "Drone Versioning Flags"
|
FlagsVersioningCategory = "Drone Versioning Flags"
|
||||||
FlagsSystemCategory = "Drone System Flags"
|
FlagsSystemCategory = "Drone System Flags"
|
||||||
FlagsPluginCategory = "Plugin Flags"
|
FlagsPluginCategory = "Plugin Flags"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Flags has the cli.Flags for the Drone plugin.
|
||||||
|
func Flags() []cli.Flag {
|
||||||
flags := []cli.Flag{}
|
flags := []cli.Flag{}
|
||||||
|
|
||||||
flags = append(flags, buildFlags(FlagsBuildCategory)...)
|
flags = append(flags, buildFlags(FlagsBuildCategory)...)
|
||||||
|
Loading…
Reference in New Issue
Block a user