-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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 support for a YAML config file #1619
Conversation
3087930
to
4d239eb
Compare
Last thing for v3.3.0 is just the docs on all the changes. @code-asher Would be nice to have windows support as well, see #1397 |
08b3775
to
6dddb4c
Compare
note: the login page should indicate the config location or whether the password was grabbed via $PASSWORD. |
adf3703
to
fd919de
Compare
throw error(`--${key} requires a value`) | ||
} | ||
|
||
if (option.type == OptionalString && value == "false") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious what the use of this is? An optional string is a string?
rather than boolean
so this feels incorrect to me as it prevents the string value false
.
I see it used in the default config file but since omission already has this meaning it doesn't seem to gain anything? Unless it's to provide an example to the user in which case I think we could add it as a comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could see it being nice to explicitly disable the cert in the configuration; we could definitely modify parse
to handle this case but maybe we just don't worry about it until the cli library. No one's going to use a cert named false
anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea the purpose was to disable the cert via the cli when it's set in the config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment, aside from that looks good to me!
- Error out if auth is enabled but no password is passed in - Indicate password location on login page
No description provided.