bolt icon indicating copy to clipboard operation
bolt copied to clipboard

Disable plugins output in `--stream` mode

Open jay7x opened this issue 3 years ago • 1 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.

jay7x avatar Jul 29 '22 11:07 jay7x

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.

github-actions[bot] avatar Sep 28 '22 00:09 github-actions[bot]

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.

github-actions[bot] avatar Oct 05 '22 00:10 github-actions[bot]

Please reopen the issue.

jay7x avatar Oct 09 '22 04:10 jay7x