Is your feature request related to a problem? Please describe.
I often find myself wanting to be able to return a value when I run a command.
Describe the solution you'd like
Right now, I have to pass in a callback function to do this:
shell.exec('my-command', value => {...})
It would be nice to be able to do this:
const value = await shell.exec('my-command')
...doStuffWithValue...
This would allow me to simply return a value from my command handler function without having to fire a callback.
| Please use the reactions to cast a vote in favor of or against this feature suggestion » |
 |
Is your feature request related to a problem? Please describe.
I often find myself wanting to be able to return a value when I run a command.
Describe the solution you'd like
Right now, I have to pass in a callback function to do this:
It would be nice to be able to do this:
This would allow me to simply return a value from my command handler function without having to fire a callback.