config reads and writes whatsdiff's own settings.

bash
# View everything
whatsdiff config
# Read one value
whatsdiff config <key>
# Write one value
whatsdiff config <key> <value>
Available settings
whatsdiff caches API responses and changelog data so repeated runs stay fast. Three keys control it:
| Key | Type | Default | Description |
|---|---|---|---|
cache.enabled |
boolean | true |
Turn caching on or off |
cache.min-time |
integer | 300 |
Minimum cache duration, in seconds |
cache.max-time |
integer | 86400 |
Maximum cache duration, in seconds |
Examples
bash
$ whatsdiff config
cache:
enabled: true
min-time: 600
max-time: 86400
bash
$ whatsdiff config cache.enabled
true
bash
$ whatsdiff config cache.min-time 900
Configuration updated: cache.min-time = 900
bash
$ whatsdiff config cache.enabled false
Configuration updated: cache.enabled = false
To bypass the cache for a single run without changing the setting, pass --no-cache to analyse, audit, or changelog.