diff --git a/README.md b/README.md index b83a35d..640f7ac 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,32 @@ Automatically discovers available commands for setuptools (`setup.py`) and expos Automatically discovers available subcommands for Django (`manage.py`) and exposes them to the **Run Task** command: -![](doc/static/django-task-discovery.png) \ No newline at end of file +![](doc/static/django-task-discovery.png) + +## Calling from tasks.json + +If you want to save the task and recall it, add it to `tasks.json`: + +```javascript +{ + "version": "2.0.0", + "tasks": [ + { + "type": "django", + "task": "check", + "label": "django: check" + }, + { + "type": "django", + "task": "collectstatic", + "label": "django: collectstatic" + } + ] +} +``` + +The type is either `django` or `setuptools`, and the `task` is the subcommand. You can optionally provide a property `file` to be specific about which `setup.py` or `manage.py` to use (if you have more than 1). + +If you have the Task Explorer UI extension, it will make these available as UI shortcuts: + +![](docs/static/task-explorer-shortcut.png) \ No newline at end of file diff --git a/doc/static/task-explorer-shortcut.png b/doc/static/task-explorer-shortcut.png new file mode 100644 index 0000000..ba1b0db Binary files /dev/null and b/doc/static/task-explorer-shortcut.png differ