/vscode-tasks

low-dependency command line interface to vscode tasks.json files

Primary LanguageRustGNU General Public License v3.0GPL-3.0

VSCODE TASKS

low-dependency command line interface to vscode tasks.json files

fetch

$ git clone ...
$ cd vscode-tasks

build

$ cargo build --release

usage

By default, vscode-tasks checks recursively from current working directory through parent directories for a file named .vscode/tasks.json.

help is displayed by default:

$ ./target/release/vscode-tasks

display usage for a specific task:

$ ./target/release/vscode-tasks help <task>
$ ./target/release/vscode-tasks <task> --help

run a task:

$ ./target/release/vscode-tasks <task> [options]

configuration

tasks.json search path can be overridden with the VSCODE_TASKS_CONFIG_PATH environment variable.

$ VSCODE_TASKS_CONFIG_PATH="examples/tasks.json" cargo run -- <task>

contributing

tests

$ cargo test

references

tasks.json variables reference

processTaskSystem.run() implementation

taskConfiguration code

schema for tasks.json