-
Notifications
You must be signed in to change notification settings - Fork 146
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
Thoughts for convict 6.0+ #379
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the code that I put in front of
convict
:And then I setup my
config
directory like so:The code that I have added recursively crawls the
config
directory and builds a config object forconvict
with these added benefits:Say the above the configuration was in a directory called
irc
in a file calledindex.ts
, the two keys above would becomeircUsername
andircPassword
. If the file was named something other than index, then that would be camelcased and inserted in between the folder name and the key name.env
andargs
propertiesUnless otherwise specified, the above mentioned keys would automatically be given the
env
ofIRC_USERNAME
and thearg
of--irc-username
.I have also considered adding dynamic shorthand flags on a first come, first served basis and an auto-generated help command.
I submit these ideas for your consideration 🙂
The text was updated successfully, but these errors were encountered: