From 81fa84c24471334892d6aa7bedec14c3ae78984c Mon Sep 17 00:00:00 2001 From: Tom Wiesing Date: Mon, 8 Apr 2024 21:39:18 +0200 Subject: [PATCH] cli/flags: Permit duplicate choices struct tag --- internal/cli/flags.go | 1 + internal/wisski/ingredient/barrel/stack.go | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/cli/flags.go b/internal/cli/flags.go index db90ce4..1e95faa 100644 --- a/internal/cli/flags.go +++ b/internal/cli/flags.go @@ -4,6 +4,7 @@ import "github.com/rs/zerolog" // Flags are global flags for the wdcli executable type Flags struct { + //lint:ignore SA5008 required by the argument framework LogLevel LogLevelString `short:"l" long:"loglevel" description:"log level" default:"info" choice:"trace" choice:"debug" choice:"info" choice:"warn" choice:"error" choice:"fatal" choice:"panic"` ConfigPath string `short:"c" long:"config" description:"path to distillery configuration file"` diff --git a/internal/wisski/ingredient/barrel/stack.go b/internal/wisski/ingredient/barrel/stack.go index 7243990..daf7fe8 100644 --- a/internal/wisski/ingredient/barrel/stack.go +++ b/internal/wisski/ingredient/barrel/stack.go @@ -4,8 +4,6 @@ import ( "embed" "path/filepath" - _ "embed" - "github.com/FAU-CDI/wisski-distillery/internal/dis/component" )