Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/golem-ai/cue-vscode-starter

A VS Code Remote Containers project/environment made for http://cuelang.org
https://github.com/golem-ai/cue-vscode-starter

Last synced: 3 months ago
JSON representation

A VS Code Remote Containers project/environment made for http://cuelang.org

Awesome Lists containing this project

README

        

# cue-vscode-starter

This is a [Visual Studio Code Remote - Containers][vscode_remote_containers] project/environment
made for [Cue].

![Cue Export as JSON](screenshots/json_export.png)
![Cue Export error handling](screenshots/errors.png)

## Instructions

```
# Clone the repository
git clone https://github.com/golem-ai/cue-vscode-starter.git

# Open in VS Code
code ./cue-vscode-starter
```

VS Code might ask you whether you trust the author ... make sure you accept ;-):
```
Yes, I trust the authors
Trust folder and enable all features
```

Make sure Docker is running on your computer.

Press CMD+SHIFT+P and choose/run `Remote-Containers: Rebuild and Reopen in Container`.

The `Startubg Dev Container` step might take a few minutes to pull the docker image.

Open a `.cue` file, and run one of the included tasks:
- `Cue Export`
- `Cue Export File`
- `Cue Format File`

You should be able to find buttons/shortcuts for those tasks in the VS Code footer.

[vscode_remote_containers]: https://code.visualstudio.com/docs/remote/containers
[cue]: https://cuelang.org