-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: handling word answers as user inputs for install script #946
feat: handling word answers as user inputs for install script #946
Conversation
d60c2d2
to
656ed9b
Compare
@@ -27,6 +27,18 @@ main() { | |||
fi | |||
} | |||
|
|||
ask() { |
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.
praise: Nice refacto 👍
CHANGELOG.md
Outdated
@@ -8,6 +8,7 @@ | |||
* chore(deps): replace `github.com/ScaleFT/sshkeys` with `golang.org/x/crypto/ssh` | |||
* fix(completion): fix zsh shebang reference | |||
* feat(integration-link): add --follow arg to manual-deploy command | |||
* feat(install.sh): handle answers with multiple letters |
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.
issue: i think the name of what we're doing is wrong. we're not handling "multiple letters", we become case insensitive
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.
we are handling yes and no too
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.
Ok, so what do you think about this sentence? I find it more accurate
* feat(install.sh): handle answers with multiple letters | |
* feat(install.sh): handling word answers as user inputs for install script |
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.
Just a picky comment. Otherwise, if you tested it and it works, LGTM
dists/install.sh
Outdated
if ! ask "Do you want to replace it with version ${new_version}?" ; then | ||
status "Aborting...\n" | ||
exit -1 |
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.
it seems we have a two spaces indentation in this file
if ! ask "Do you want to replace it with version ${new_version}?" ; then | |
status "Aborting...\n" | |
exit -1 | |
if ! ask "Do you want to replace it with version ${new_version}?" ; then | |
status "Aborting...\n" | |
exit -1 |
fix #929