fmt.Fprintf(&buf, "executed %d command(s)", len(changes))
}
if noOutput > 0 && !s.config.DryRun {
- fmt.Fprintf(&buf, ", %d with no output", noOutput)
+ fmt.Fprintf(&buf, ", %d with no output (hidden)", noOutput)
}
if noOutput != len(changes) {
fmt.Fprintf(&buf, ":")
Error: "fake error",
},
},
- `executed 5 command(s), 1 with no output:
+ `executed 5 command(s), 1 with no output (hidden):
"fake command":
> fake output
> \ No newline at end of file
Error: "fake error",
},
},
- "executed 5 command(s), 1 with no output:\n\x1b[36m\"fake command\"\x1b[0m:\n > fake output\n > \\ No newline at end of file\n\x1b[36m\"fake command with newline\"\x1b[0m:\n > fake output\n\x1b[36m\"fake command with more output\"\x1b[0m:\n > fake out\n > fake put\n > fake\n\x1b[36m\"fake failed command\"\x1b[0m, failed: \"fake error\":\n > fake output\n > \\ No newline at end of file\n",
+ "executed 5 command(s), 1 with no output (hidden):\n\x1b[36m\"fake command\"\x1b[0m:\n > fake output\n > \\ No newline at end of file\n\x1b[36m\"fake command with newline\"\x1b[0m:\n > fake output\n\x1b[36m\"fake command with more output\"\x1b[0m:\n > fake out\n > fake put\n > fake\n\x1b[36m\"fake failed command\"\x1b[0m, failed: \"fake error\":\n > fake output\n > \\ No newline at end of file\n",
},
{
Command: "fake command with no output",
},
},
- `executed 2 command(s), 2 with no output
+ `executed 2 command(s), 2 with no output (hidden)
`,
},
Command: "fake command with no output",
},
},
- `executed 2 command(s), 1 with no output:
+ `executed 2 command(s), 1 with no output (hidden):
"fake command with no output but error", failed: "fake error"
`,
},