Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flag to generate a "defaults" configuration file #15

Open
zoe-codez opened this issue Mar 2, 2024 · 1 comment
Open

Add flag to generate a "defaults" configuration file #15

zoe-codez opened this issue Mar 2, 2024 · 1 comment
Labels

Comments

@zoe-codez
Copy link
Member

zoe-codez commented Mar 2, 2024

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 zoe-codez added the enhancement New feature or request label Mar 2, 2024
@zoe-codez zoe-codez added this to the 0.2 milestone Mar 2, 2024
@zoe-codez zoe-codez removed this from the 0.2 milestone Mar 21, 2024
@zoe-codez zoe-codez moved this to Backlog in Side Projects Mar 21, 2024
@zoe-codez zoe-codez moved this from Backlog to Blocked in Side Projects Mar 21, 2024
@zoe-codez
Copy link
Member Author

Should also do .env

Blocked by #86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Blocked
Development

No branches or pull requests

1 participant