RDTK / generator

A tool for creating Jenkins jobs and other things from recipes describing software projects
GNU General Public License v3.0
21 stars 3 forks source link

Add a config sub-command #1

Closed scymtym closed 5 years ago

scymtym commented 5 years ago

Is your feature request related to a problem? Please describe. I'm sometimes not sure which configuration the generator is using and what configuration files it expects. The output of build-generator help does not talk about configuration files or the current configuration.

Describe the solution you'd like It would be really helpful if there was a sub-command, for example config, for exploring configuration aspects:

$ build-generator config

Usage: build-generator [GLOBAL-OPTIONS] config …

Query the current configuration.

Configuration files are tried in the following order:
  1. $(pwd)/build-generator.conf
  2. ${HOME}/.config/build-generator.conf
…

$ build-generator config list
commands.generate.username = user
commands.generate.base-uri = https://localhost:8080
…
scymtym commented 5 years ago

@semeyerz Would something like this help?

semeyerz commented 5 years ago

Yes, that would be nice!