https://github.com/teguru-labs/ws
A simple CLI tool to quickly open VSCode Workspace
https://github.com/teguru-labs/ws
cli vsode workspace
Last synced: 6 months ago
JSON representation
A simple CLI tool to quickly open VSCode Workspace
- Host: GitHub
- URL: https://github.com/teguru-labs/ws
- Owner: phe-lab
- License: apache-2.0
- Created: 2024-10-05T17:21:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-01T02:59:43.000Z (over 1 year ago)
- Last Synced: 2024-11-01T03:16:45.585Z (over 1 year ago)
- Topics: cli, vsode, workspace
- Language: Go
- Homepage:
- Size: 51.8 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VSCode Workspace CLI
A simple CLI tool to quickly open VSCode Workspace.

## Installation
Using [Homebrew](https://brew.sh):
```bash
brew install teguru-labs/tap/ws
```
If you have a Go environment:
```bash
go get -u -v github.com/teguru-labs/ws
```
## Usage
```bash
# List the workspaces
ws
# Open the workspace with the filename "simple-scrollspy.code-workspace"
ws simple-scrollspy
# Execute CLI with the logging level set to "debug"
ws --debug
```
## Configuration
### Environment Variables
| Name | Default | Description |
| ----------------- | ------------------- | ---------------------------------------------------------- |
| `VSCODE_WS_PATH` | `~/code-workspaces` | The directory path containing the `*.code-workspace` files |
| `VSCODE_WS_DEBUG` | | Enable the debug mode: `VSCODE_WS_DEBUG=true` |