databricks-cli/libs/process
Serge Smertin 7171874db0
Added `process.Background()` and `process.Forwarded()` (#804)
## Changes
This PR adds higher-level wrappers for calling subprocesses. One of the
steps to get https://github.com/databricks/cli/pull/637 in, as
previously discussed.

The reason to add `process.Forwarded()` is to proxy Python's `input()`
calls from a child process seamlessly. Another use-case is plugging in
`less` as a pager for the list results.

## Tests
`make test`
2023-09-27 09:04:44 +00:00
..
background.go Added `process.Background()` and `process.Forwarded()` (#804) 2023-09-27 09:04:44 +00:00
background_test.go Added `process.Background()` and `process.Forwarded()` (#804) 2023-09-27 09:04:44 +00:00
forwarded.go Added `process.Background()` and `process.Forwarded()` (#804) 2023-09-27 09:04:44 +00:00
forwarded_test.go Added `process.Background()` and `process.Forwarded()` (#804) 2023-09-27 09:04:44 +00:00
opts.go Added `process.Background()` and `process.Forwarded()` (#804) 2023-09-27 09:04:44 +00:00
opts_test.go Added `process.Background()` and `process.Forwarded()` (#804) 2023-09-27 09:04:44 +00:00