Unable to avoid empty task output
- [x] I have the latest version of mani
- [x] I have searched through the existing issues
Info
-
OS
- [x] Linux
- [x] Mac OS X
- [x] Windows
- [x] other
-
Shell
- [x] Bash
- [x] Zsh
- [ ] Fish
- [ ] Powershell
- [ ] other
- Version: 0.31.0
Problem / Steps to reproduce
Apparently there is no command line switch one can add in order to avoid noise/spam output from commands that do not output anything.
I tried a command like below with the hope that it will display nothing if nothing is found on some projects but the output is bit spammy and clearly not useful in any way as it does not even mention the project names but it adds the header.:
mani exec --all 'rg actions/upload-artifact@ || true' -s --ignore-errors
TASK [output] *************************************************************************************************************************************************************************************************************************************
TASK [output] *************************************************************************************************************************************************************************************************************************************
TASK [output] *************************************************************************************************************************************************************************************************************************************
TASK [output] *************************************************************************************************************************************************************************************************************************************
pytest-plus | .github/workflows/tox.yml:101:15: uses: actions/upload-artifact@v4
pytest-plus | README.md:59:9: uses: actions/upload-artifact@v4
TASK [output] *************************************************************************************************************************************************************************************************************************************
subprocess-tee | .github/workflows/tox.yml:92:15: uses: actions/upload-artifact@v4
TASK [output] *************************************************************************************************************************************************************************************************************************************
team-devtools | .github/workflows/tox.yml:204:17: uses: coactions/upload-artifact@v4
TASK [output] *************************************************************************************************************************************************************************************************************************************
TASK [output] *************************************************************************************************************************************************************************************************************************************
vscode-ansible | .github/workflows/ci.yaml:299:15: uses: actions/upload-artifact@v4
vscode-ansible | .github/workflows/ci.yaml:309:15: uses: actions/upload-artifact@v4
vscode-ansible | .github/workflows/ci.yaml:326:15: uses: actions/upload-artifact@v4
It would be awesome if I could configure mani to avoid any output on screen that is not adding clear value (empty tasks should produce no output at all, at least no until the general verbosity would be increased).
You can use:
--omit-empty-columns omit empty columns in table output
--omit-empty-rows omit empty rows in table output
-o, --output string set output format [stream|table|markdown|html]
It only works for table output which saves the stdout/stderr to variables before printing them. For stream output it's piping directly to stdout/stderr.
If you want to modify the TASK output ****** stuff, you can modify the theme, see https://manicli.com/config. For instance:
themes:
default:
stream:
prefix: false
header: false
header_prefix: ''
header_char: ''