Skip to content

Commit

Permalink
Enable and appease the tagalign linter
Browse files Browse the repository at this point in the history
  • Loading branch information
silkeh committed Sep 11, 2023
1 parent 58e1673 commit 865d34f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ linters:
- godox
- revive
- stylecheck
- tagalign
- wrapcheck
# Disabled permanently
- exhaustruct # structs may be uninitialized
Expand Down Expand Up @@ -113,6 +112,10 @@ linters-settings:
- short
- long
- desc
- cmd
- arg
- aliases
- help

varnamelen:
min-name-length: 1
12 changes: 6 additions & 6 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ var Version string = "unknown"

// GlobalFlags contains the flags for all commands.
type GlobalFlags struct {
Debug bool `short:"d" long:"debug" help:"Run in debug mode."`
Chroot bool `short:"c" long:"chroot" help:"Specify that command is being run from a chrooted environment."` //nolint:lll
Live bool `short:"l" long:"live" help:"Specify that command is being run from a live medium."`
Version kong.VersionFlag `short:"v" long:"version" help:"Print version and exit."`
Debug bool `short:"d" long:"debug" help:"Run in debug mode."`
Chroot bool `short:"c" long:"chroot" help:"Specify that command is being run from a chrooted environment."` //nolint:lll
Live bool `short:"l" long:"live" help:"Specify that command is being run from a live medium."`
Version kong.VersionFlag `short:"v" long:"version" help:"Print version and exit."`
}

type arguments struct {
GlobalFlags

Run run `cmd:"" aliases:"r" help:"Run specified trigger(s) to update the system configuration."`
Run run `cmd:"" aliases:"r" help:"Run specified trigger(s) to update the system configuration."`
List list `cmd:"" aliases:"ls" help:"List available triggers to run (user-specific)."`
Graph graph `cmd:"" aliases:"g" help:"Print the dependencies for all available triggers."`
Graph graph `cmd:"" aliases:"g" help:"Print the dependencies for all available triggers."`
}

func Parse() (*kong.Context, GlobalFlags) {
Expand Down

0 comments on commit 865d34f

Please sign in to comment.