Disable plugins output in `--stream` mode
jay7x opened this issue · 3 comments
Use Case
I'm always frustrated when I see all my >2000 hosts returned by an inventory plugin in the bolt command run ... --stream --no-verbose
output. My inventory.yaml calls a task plugin to get list of my hosts from another source in the company. All those hosts are dumped to the stdout when I run bolt in --stream
mode.
Describe the Solution You Would Like
I'd like to not see the inventory plugin task output in the bolt --stream
mode.
Describe Alternatives You've Considered
I can consider writing a Ruby non-task inventory plugin like prompt
or env_var
e.g. Such plugins output is not dumped to stdout as far as I can see (I tried to pass some hosts in JSON form via the env_var
plugin). Though I found no way how to write such plugins in the documentation. So I'm not sure if it's possible at all.
This issue has not had activity for 60 days and will be marked as stale.
If this issue continues to have no activity for 7 days, it will be closed.
This issue is stale and has been closed. If you believe this is in error,
or would like the Bolt team to reconsider it, please reopen the issue.
Please reopen the issue.