0.1.0 • Published 1 year ago
vscode-launcher v0.1.0
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
Installation
- Clone the repository:
git clone https://github.com/yourusername/vscode-launcher.git - Install dependencies:
npm install
Usage
Command Syntax
node index.js [options]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:
node index.js --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.