https://github.com/phe-lab/ws
A simple CLI tool to quickly open VSCode Workspace
https://github.com/phe-lab/ws
cli vsode workspace
Last synced: 5 months ago
JSON representation
A simple CLI tool to quickly open VSCode Workspace
- Host: GitHub
- URL: https://github.com/phe-lab/ws
- Owner: phe-lab
- License: apache-2.0
- Created: 2024-10-05T17:21:41.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-01T02:59:43.000Z (7 months ago)
- Last Synced: 2024-11-01T03:16:45.585Z (7 months 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 phe-lab/tap/ws
```If you have a Go environment:
```bash
go get -u -v github.com/phe-lab/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` |