From 5f5cc89efb589e79c37120f9ada22c42c0f79cca Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 8 Feb 2023 14:07:32 +0100 Subject: [PATCH] fix: fix global urfave category flags (#29) --- urfave/urfave.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/urfave/urfave.go b/urfave/urfave.go index 622abc3..8ce9d2c 100644 --- a/urfave/urfave.go +++ b/urfave/urfave.go @@ -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)...)