mdox icon indicating copy to clipboard operation
mdox copied to clipboard

Add subcommand that will generate example YAML that will parsable from Go structs

Open bwplotka opened this issue 4 years ago • 0 comments

Similar to https://github.com/thanos-io/thanos/blob/main/scripts/cfggen/main.go

Acceptance Criteria:

  • User can pass such tool in mdox-exec feature (separate subcommand?)
  • Will generate example YAML (or whatever format is parsed to Go structs)
  • Allows passing example defaults
  • Preserve comments
  • Optional: Tests if generated yaml can be actually parsable and returns err if not?

bwplotka avatar May 12 '21 09:05 bwplotka