Config Diff
Compares two configurations and reports what changed between them.
Usage
Full, up-to-date usage information can be found with tilegroxy config diff -h.
Output of
tilegroxy config diff -hCompares your current configuration against a new configuration,
outputting what changed and whether serve --hot-reload can apply
it without a restart. Outputs everything that gets added, removed,
or modified. The output isn't a simple line-by-line diff, instead
it's contextually aware of the tilegroxy config format, so a new
layer gets recorded as one addition.
The default output is a readable, colored text mode. Consider using
json or yaml for scripted use cases. The presence of a top-level
'restart' key indicates whether a restart is needed for CICD purposes.
Exits with a status code of 0 if the configurations match and 1 if
they differ.
Usage:
tilegroxy config diff FILE [flags]
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
|
bool |
|
help for diff |
|
bool |
|
Output the differences in JSON |
|
bool |
|
Output the differences as a markdown table with one row per change |
|
bool |
|
Turn off the colorization of the default output |
|
bool |
|
Output the differences as a table with one row per change |
|
bool |
|
Output the differences in YAML |
Global flags
The following global flags are available for supplying your configuration:
-c, --config string A file path to the configuration file to use.
The file should have an extension of either
json or yml/yaml and be readable.
(default "./tilegroxy.yml")
--remote-endpoint string The endpoint to use to connect to the remote
provider (default "http://127.0.0.1:2379")
--remote-path string The path to use to select the configuration
on the remote provider
(default "/config/tilegroxy.yml")
--remote-provider string The provider to pull configuration from.
One of: etcd, etcd3, consul, firestore, nats
--remote-type string The file format to use to parse the configuration
from the remote provider (default "yaml")