Skip to content

odaacabeef/ec4-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EC4 Config

⚠️ WORK IN PROGRESS - this cannot actually configure an EC4 yet ⚠️

Configuration as code for the Faderfox EC4.

Usage

Your configuration must be piped to stdin as JSON. The expectation is that configuration would be maintained with something like Jsonnet, Cue, or anything that can produce JSON.

cat config.json | go run .

If you're using Jsonnet:

jsonnet config.jsonnet | go run .

Configuration

Configuration is unified and validated with schema.cue. This file dictates object structure, field constraints, and default values.

When developing your configuration, the cue vet command is helpful for determining if validation will pass.

cue vet schema.cue config.json

Jsonnet:

jsonnet config.jsonnet | cue vet schema.cue -

Example

I maintain my own configuration here: https://gist.github.com/trotttrotttrott/fc4a74d8bd7d395cbf82431c467b77ef

About

WIP: Configuration as code for the Faderfox EC4

Resources

License

Stars

Watchers

Forks