/
githubmirror
/
ignition
Обзор
Документация
Войти
/
githubmirror
/
ignition
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v2.12.0
generate
21 строка
702 B
Jonathan Lebon
config/v3_4_experimental: adapt for experimental
24 июн 2021, 17:24
24 июн 2021, 17:24
4410f5e
Код
Авторство
О чём код?
#!/usr/bin/env bash set -eu # This script uses schematyper, which must be installed and in the PATH, to # convert the json schema stored in schema/ignition.json into go structs for # json deserialization in config/types/schema.go. # # This script should be run whenever schema/ignition.json is modified. hash schematyper 2>/dev/null || { echo >&2 "schematyper must be installed and in the PATH to use this script: https://github.com/idubinskiy/schematyper" exit 1 } specs="v3_0 v3_1 v3_2 v3_3 v3_4_experimental" for spec in $specs do echo "Generating schema..." schematyper --package=types "config/${spec}/schema/ignition.json" -o "config/${spec}/types/schema.go" --root-type=Config done