google / zx

A tool for writing better scripts

Home Page:https://npmjs.com/package/zx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: spawn/child_process options

rmcarias opened this issue · comments

Specifications

This is more of question (or feature request). How can I pass the supported options to the spawn method for example:

{
  detached: true,
  stdio: 'inherit',
  shell: true,
}

Using this syntax?
```$`<some_shell_command>````

Also, it seems that when you do this:

let child = $`<some_shell_command>`

Because it returns a promise, we don't get access to other child process props and method, like

child.unref()
  • Version: 6.0.7
  • Platform: Mac OS
ezoic increase your site revenue