mirror of
https://github.com/foomo/squadron.git
synced 2025-10-16 12:35:42 +00:00
Merge pull request #93 from foomo/fix/rollback
fix: rollback flag binding
This commit is contained in:
commit
72eccc26b8
@ -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
|
||||
}
|
||||
|
||||
@ -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 ")
|
||||
}
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user