Skip to content

relgap config validate ​

Without arguments, validates the user and project config files plus RELGAP_* env vars and flags, exactly as other commands would load them. With arguments, validates only those files.

Exits 2 and prints every problem with file:line:column when something is invalid.

Usage ​

sh
relgap config validate [file...]

Arguments ​

ArgumentRequiredRepeatable
filenoyes

The global flags work with every command.

Output formats ​

--format accepts tty, plain, json. Without it, the format is tty when stdout is a terminal and plain otherwise. Formats are described on the global flags page.

Exit codes ​

CodeMeaning
0The command finished. With --fail-on, nothing matched.
1The command failed: a read, a write, a child process or a check failed.
2Wrong usage: an unknown command or flag, a bad value or argument, an invalid config file, or a prompt with no terminal.
130Interrupted by Ctrl-C (SIGINT) or a cancelled context.

All codes are listed on the exit codes page.

Examples ​

sh
relgap config validate
relgap config validate .relgap.yaml ~/.config/relgap/config.yaml