execute_capture_output -> RunWithManagedStdio

RunWithManagedStdio is a more general function that can be applied to
any cvd::Command, which allows using the full set of configuration
options that cvd::Command supports.

The function supports writing a string to the subprocess stdin, reading
the subprocess stdout to a string, and/or reading the subprocess stderr
to a string.

Test: Run launch_cvd --help, fetch_cvd
Bug: 141889929
Change-Id: I2845add9d22c21e6853651f1ea93f011e6c434fe
5 files changed
tree: a6c31530d7c1d13173d88e5a9649e60415320b79
  1. common/
  2. guest/
  3. host/
  4. tests/
  5. tools/
  6. Android.bp
  7. Android.mk
  8. OWNERS
  9. TEST_MAPPING