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"
|
||||||
@ -24,6 +22,8 @@ func Flags() []cli.Flag {
|
|||||||
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