cli/flags: Permit duplicate choices struct tag

This commit is contained in:
Tom Wiesing 2024-04-08 21:39:18 +02:00
parent 26236b6c9a
commit 81fa84c244
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View file

@ -4,6 +4,7 @@ import "github.com/rs/zerolog"
// Flags are global flags for the wdcli executable // Flags are global flags for the wdcli executable
type Flags struct { 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"` 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"` ConfigPath string `short:"c" long:"config" description:"path to distillery configuration file"`

View file

@ -4,8 +4,6 @@ import (
"embed" "embed"
"path/filepath" "path/filepath"
_ "embed"
"github.com/FAU-CDI/wisski-distillery/internal/dis/component" "github.com/FAU-CDI/wisski-distillery/internal/dis/component"
) )