js-command-runner
A small extension that allows defining custom commands in JS. You can use it for some small tweaks instead of
writing shell scripts.
A code runs as a function evaluated in your VSCode, so you are to blame for everything.
Features
All tasks are defined as a setting in your settings.json as following:
"js-command-runner.commands": [
{
"label": "My command",
"commands": [
"var variable = 'This is a string';'"
"infoNotification(`Script ${variable} executed...`);",
],
}
]
There are two special functions:
infoNotification : a regular information notification
errorNotification : an error information notification
Requirements
Extension Settings
js-command-runner.commands - an array of commands to be executed.
Commands object:
- label: name of command. Previewable from quick look
- commands: array of strings, each line should a valid JS code.
- description: command description. Optional
Known Issues
TBD
Release Notes
| |