Provides Emacs font-lock, indentation, and some useful functions for the CUE data validation language.
Depends on the CUE Lang CLI tool for formatting and evaluating files. This can be installed by following this documentation.
Indentation is implemented via the SMIE package, it has only been tested with some sample files. There are test cases so any fixes should come with a test.
Key Binding | Function | Purpose |
---|---|---|
`C-c C-r` | `cue-reformat-buffer` | Reformat the current buffer |
`C-c C-c` | `cue-eval-buffer` | Evaluate the current buffer and show the output |
This project is using Bazel for testing, if you don’t have it the easiest way to get it is by installing Bazelisk.
You can run the following command to run the tests
basel test //... --test_output=errors
# or, depending on how you installed
bazelisk test //... --test_output=errors
Updating autoloads can be done via this command
bazel run //:generate-autoloads