- fmt.Fprintf(&buf, "executed %d command(s)", len(changes))
- if noOutput > 0 {
- fmt.Fprintf(&buf, ", %d with no output", noOutput)
+ if s.config.DryRun {
+ fmt.Fprintf(&buf, "will execute %d command(s)", len(changes))
+ } else {
+ fmt.Fprintf(&buf, "executed %d command(s)", len(changes))
+ }
+ if noOutput > 0 && !s.config.DryRun {
+ fmt.Fprintf(&buf, ", %d with no output (hidden)", noOutput)