Skip to content

2022-02-10: Return values for exec command #9

@gbdrummer

Description

@gbdrummer

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 »

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions