vscode-launcher
v0.3.0
Published
Launches vscode launch.json configurations from the command line
Maintainers
Readme
VSCode Launcher
This project is a CLI tool for running a launch configuration from .vscode/launch.json. It uses Figlet to print a fun banner, Commander for argument parsing, and custom utilities for launching and reading configuration files.
Features
- Launch a specific configuration from
.vscode/launch.json - Specify the working directory
- Optional debug mode for extra logging
Usage
Command Syntax
npx vscode-launcher -c "{The name of a launch command in your .vscode/launch.json}"Options
| Option | Description | Default Value |
|----------------------------------------|----------------------------------------------------------------------|--------------------------|
| --cwd [cwd] | Set the current working directory to use. | process.cwd() |
| -c, --configuration-name <configuration> | Specify the name of the configuration to launch. | None |
| -d, --debug | Enable debug mode for additional logs. | false |
| -l, --launchFile [launch-file] | Path to the launch.json file. | .vscode/launch.json |
Example Usage
To run a specific configuration:
npx vscode-launcher --configuration-name myConfigTo run with a custom launch file:
node index.js -l ./custom/launch.json -c myConfigEnable debugging:
node index.js --debugLicense
This project is licensed under the MIT License - see the LICENSE file for details.
