Merge pull request #93 from foomo/fix/rollback

fix: rollback flag binding
This commit is contained in:
Kevin Franklin Kim 2025-04-09 17:33:05 +02:00 committed by GitHub
commit 72eccc26b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 8 deletions

View File

@ -42,7 +42,7 @@ func NewRollback(c *viper.Viper) *cobra.Command {
_ = c.BindPFlag("revision", flags.Lookup("revision"))
flags.StringSlice("tags", nil, "list of tags to include or exclude (can specify multiple or separate values with commas: tag1,tag2,-tag3)")
_ = c.BindPFlag("tags", flags.Lookup("namespace"))
_ = c.BindPFlag("tags", flags.Lookup("tags"))
return cmd
}

View File

@ -68,11 +68,5 @@ func (s *NoopSpinner) message(message ...string) string {
if pterm.PrintDebugMessages {
msg = append(msg, s.log...)
}
m := pterm.GetTerminalWidth() - 10
for i, line := range msg {
if len(line) > m {
msg[i] = line[:m] + "…"
}
}
return strings.Join(msg, "\n ")
}

View File

@ -712,7 +712,6 @@ func (sq *Squadron) Rollback(ctx context.Context, revision string, helmArgs []st
stdErr := bytes.NewBuffer([]byte{})
out, err := util.NewHelmCommand().Args("rollback", name).
Stderr(stdErr).
// Stdout(os.Stdout).
Args(helmArgs...).
Args("--namespace", namespace).
Run(ctx)