Skip to content

rungar config migrate

Rewrite a configuration file for the configuration version this rungar writes: its version set, and every key or value that is deprecated replaced by what replaces it, so that it means what it did and loads without a warning. It prints the file rewritten, and what it changed to stderr; --write replaces the file instead, keeping its mode and owner. Comments are kept, and only the version’s line changes unless a deprecated key has to be rewritten, which lays the whole file out afresh: look at the difference before replacing the file. It fails, changing nothing, on a file that would not load, before or after. Like validate, it contacts nothing and needs no daemon.

Usage

$ rungar config migrate [flags]

Flags

FlagDescription
-f, --config stringConfiguration file. Default: /etc/rungar/config.yaml.
-w, --writeReplace the file, rather than printing it.