ec4-config

command module
v0.0.0-...-7c35706 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL