vscode-launcher
v0.1.0
Published
Launches vscode launch.json configurations from the command line
Downloads
6
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
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 myConfig
To run with a custom launch file:
node index.js -l ./custom/launch.json -c myConfig
Enable debugging:
node index.js --debug
License
This project is licensed under the MIT License - see the LICENSE file for details.