-
Notifications
You must be signed in to change notification settings - Fork 2.3k
helpers: Add --slient option to bash-it update #1621
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
Conversation
|
Ping @nwinkler |
a2e504c to
83cdb40
Compare
Also fix the update completion test
nwinkler
left 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.
Sorry about the delay in reviewing your PRs, apologies! I've left some comments - can you please take a look?
lib/helpers.bash
Outdated
| return;; | ||
| update) | ||
| func=_bash-it_update;; | ||
| _bash-it_update $component "$@" |
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.
Why did you add the $component here? Is this really needed for the update scenario?
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.
removed in the currrent version
|
|
||
| declare silent | ||
| for word in $@; do | ||
| if [[ ${word} == "--silent" || ${word} == "-s" ]]; then |
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.
Please add documentation for the two new options to the README.md file in the Updating section.
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.
done
|
|
||
| declare silent | ||
| for word in $@; do | ||
| if [[ ${word} == "--silent" || ${word} == "-s" ]]; then |
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.
Should we also add the new --silent option to the bash-it.completion.bash file? The update command is not covered at the moment, since it did not have any options so far.
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.
done
83cdb40 to
72cb996
Compare
Resolves #1523
Lemme know what you think @nwinkler 😄