Runs a query and streams the CLI's messages as they arrive.
Runs a query and streams the CLI's messages as they arrive.
The CLI is the configured executable, or the one discovery finds. Running the stream starts it, and closing the scope the stream runs in ends it. A consumer that stops pulling early closes that scope to end the CLI at once, as in Scope.run(query(options).take(1).run).