Butane-Schemas
Butane Schemas that helps creating Butane files for Fedora Coreos
What is it ?
This is a Json Schema that can be used as a helper to write a butane config file according to its specifications
Use it with VsCode
- Install vs code
- Install the Red hat YAML extension
- Associate a schema in the YAML file
# yaml-language-server: $schema=<urlToTheSchema>
: doc- For butane schema, use
# yaml-language-server: $schema=https://raw.githubusercontent.com/Relativ-IT/Butane-Schemas/Release/Butane-Schema.json"
- For butane schema, use
How to setup vs code to associate a schema to your *.bu files whitout setting schema manually
- edit your settings.json file like :
New with Version 1.8.0 of the Red hat YAML extension and since this I've published this work on JSON Schema Store you just need to change your files associations 😀
"settings": {
"files.associations": {
"*.bu": "yaml"
}
}
Use it with Sublime text
You can also use these butane schemas with Sublime text editor thanks to @jdoss via sublime-butane