From 29c0c10478a5655ff96c2991196dc5d67f2ad89f Mon Sep 17 00:00:00 2001 From: Kevin Franklin Kim Date: Wed, 21 May 2025 11:18:55 +0200 Subject: [PATCH] feat: add squadron options --- .golangci.yml | 5 +++-- foomo/squadron/v2/command.go | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 4184e65..18bc73d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,8 +1,9 @@ +# https://golangci-lint.run/usage/configuration/ +# yaml-language-server: $schema=https://golangci-lint.run/jsonschema/golangci.jsonschema.json version: "2" run: go: 1.24.1 - build-tags: - - safe + build-tags: [safe] modules-download-mode: readonly linters: default: none diff --git a/foomo/squadron/v2/command.go b/foomo/squadron/v2/command.go index 5cfc6bc..d27b119 100644 --- a/foomo/squadron/v2/command.go +++ b/foomo/squadron/v2/command.go @@ -207,6 +207,7 @@ func NewCommand(l log.Logger, squadron *Squadron, kubectl *kubectl.Kubectl, op * Flags: func(ctx context.Context, r *readline.Readline, fs *readline.FlagSets) error { commonFlags(fs) fs.Default().Bool("no-render", false, "don't render the config template") + fs.Default().Bool("raw", false, "print raw output without highlighting") fs.Default().String("tags", "", "list of tags to include or exclude") return nil }, @@ -220,6 +221,7 @@ func NewCommand(l log.Logger, squadron *Squadron, kubectl *kubectl.Kubectl, op * commonFlags(fs) fs.Default().Int64("parallel", 1, "number of parallel processes") fs.Default().String("tags", "", "list of tags to include or exclude") + fs.Default().Bool("raw", false, "print raw output without highlighting") fs.Internal().String("tag", "", "image tag") if err := profileFlag(ctx, r, fs); err != nil { return err @@ -251,6 +253,7 @@ func NewCommand(l log.Logger, squadron *Squadron, kubectl *kubectl.Kubectl, op * commonFlags(fs) fs.Default().Bool("with-tags", false, "include tags") fs.Default().Bool("with-charts", false, "include charts") + fs.Default().Bool("with-priorty", false, "include priorities") fs.Default().Bool("with-builds", false, "include builds") fs.Default().String("tags", "", "list of tags to include or exclude") return nil @@ -263,6 +266,7 @@ func NewCommand(l log.Logger, squadron *Squadron, kubectl *kubectl.Kubectl, op * Args: tree.Args{unitsArg}, Flags: func(ctx context.Context, r *readline.Readline, fs *readline.FlagSets) error { commonFlags(fs) + fs.Default().Bool("raw", false, "print raw output without highlighting") fs.Default().String("tags", "", "list of tags to include or exclude") fs.Default().String("output", "", "output json file") return nil @@ -324,6 +328,7 @@ func NewCommand(l log.Logger, squadron *Squadron, kubectl *kubectl.Kubectl, op * Args: tree.Args{unitsArg}, Flags: func(ctx context.Context, r *readline.Readline, fs *readline.FlagSets) error { commonFlags(fs) + fs.Default().Bool("raw", false, "print raw output without highlighting") fs.Default().Int64("parallel", 1, "number of parallel processes") fs.Default().String("tags", "", "list of tags to include or exclude") fs.Internal().String("tag", "", "image tag")