Yamlfix is a YAML formatter.
- Linux or macOS
- Python 3.6 or newer
./install.sh./run.shusage: yamlfix [-h] [-c] [-v | -l LOG_LEVEL] [path [path ...]]
Format YAML files
positional arguments:
path Path to file or folder to format
optional arguments:
-h, --help show this help message and exit
-c, --check Do not reformat files, only check need for
reformatting. Returns an error code if a file needs to
be reformatted.
-v, --verbose Enable debug logging
-l LOG_LEVEL, --log_level LOG_LEVEL
Enable a specific level of logging (1: DEBUG, 5:
CRITICAL, default: INFO)
Format a single YAML file:
./run.sh config.yamlFormat all YAML files in a directory:
./run.sh ./config/Check if files need reformatting without modifying them:
./run.sh --check config.yamlEnable verbose logging:
./run.sh -v config.yaml./check.sh