relgap registry update
Downloads registry/*.yaml from the main branch of sassdavid/relgap through the GitHub contents API, with the HTTP cache's ETags, and keeps the entries that differ from the ones embedded in this binary. Resolution then uses them in place of the embedded entries of the same name, and 'relgap resolve' shows "relgap registry updated" for them.
An entry that fails 'relgap registry lint' or whose min_relgap is newer than this binary is skipped, and the embedded entry stays in use. Each run replaces the entries of the run before. The entries live in the registry directory next to the HTTP cache; 'relgap cache clear' removes them.
Usage
relgap registry updateThe 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
| Code | Meaning |
|---|---|
| 0 | The command finished. With --fail-on, nothing matched. |
| 1 | The command failed: a read, a write, a child process or a check failed. |
| 2 | Wrong usage: an unknown command or flag, a bad value or argument, an invalid config file, or a prompt with no terminal. |
| 4 | Credentials were missing or rejected for every source the command needed. |
| 130 | Interrupted by Ctrl-C (SIGINT) or a cancelled context. |
All codes are listed on the exit codes page.
Examples
relgap registry update
relgap registry update --format json