Skip to content
make-smart-productsPublic

About

CLI на Go для проверки YAML, JSON и TOML. Поддерживает валидацию по JSON Schema и запуск проверок в CI.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

configo

CI

CLI to validate YAML, JSON, and TOML configuration files. Built for local dev and CI pipelines.

RU: configo проверяет синтаксис конфигов и (опционально) JSON Schema — удобно для фриланса и аудита конфигураций перед деплоем.

Install

go install github.com/make-smart-products/configo/cmd/configo@latest

Or build from source:

git clone git@github.com:make-smart-products/configo.git
cd configo
go build -o bin/configo ./cmd/configo

Quick start

# Check one file
configo check app.yaml

# Check a directory recursively
configo check ./configs

# Docker Compose schema
configo check docker-compose.yaml --schema docker-compose

# CI mode (exit 1 on errors)
configo check . --ci

# JSON report
configo check . --json

Commands

Command Description
check Validate files or directories
schema List built-in schemas
version Show version

check flags

Flag Description
--format auto, yaml, json, toml
--schema Built-in schema name
--schema-file Path to custom JSON Schema
--strict Stricter schema rules
--ci Minimal output, non-zero exit on failure
--json JSON report
--max-errors Limit errors per file (default 50)

Built-in schemas

  • docker-compose — requires top-level services map
configo schema

Exit codes

Code Meaning
0 Success
1 Validation or runtime error
2 CLI usage error

Architecture

See docs/ARCHITECT.md and agent prompts in docs/PROMPTS.md.

Docker

docker build -t configo .
docker run --rm -v "${PWD}:/work" -w /work configo check .

License

MIT — see LICENSE.

About

CLI на Go для проверки YAML, JSON и TOML. Поддерживает валидацию по JSON Schema и запуск проверок в CI.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages