core icon indicating copy to clipboard operation
core copied to clipboard

Add flag to generate a "defaults" configuration file

Open zoe-codez opened this issue 1 year ago • 1 comments

Add the ability to generate a "defaults" configuration file via boilerplate.BUILD_DEFAULT_CONFIG. This will build a valid configuration file with all configuration properties in it. The value for everything should be the module defined defaults, ignoring any others

Must display all help text, enums, type information, required state in the file

Activate

  • --build-default-config - output at ./.{appname} in ini format
  • --build-default-config ./output - output at the target file
# example usage
node dist/my_app.js --build-default-config ./default_config

# loading the file (already implemented)
node dist/my_app.js --config ./my_custom_config

Notes

Only supporting ini & yaml / yml (none = ini) initial implementation. JSON files possible if comment-json gets added as a production dependency

zoe-codez avatar Mar 02 '24 17:03 zoe-codez

Should also do .env

Blocked by #86

zoe-codez avatar Oct 06 '24 15:10 zoe-codez