-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Implement yarn completion #2190
Conversation
@NoahGorny @davidpfarrell could you review it and merge. I need it urgently |
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.
Hey ! So the .bash file doesn't match the pattern used in other vendor competions:
django.completion.bash
# shellcheck shell=bash
about-completion "django completion"
# shellcheck disable=SC1090
source "${BASH_IT}"/vendor/github.com/django/django/extras/django_bash_completion
apm.completion.bash
# shellcheck shell=bash
about-completion "apm completion"
# shellcheck disable=SC1090
source "${BASH_IT}"/vendor/github.com/vigo/apm-bash-completion/apm
jboss5.completion.bash
# shellcheck shell=bash
about-completion "jboss5 completion"
# shellcheck disable=SC1090
source "${BASH_IT}"/vendor/github.com/rparree/jboss-bash-completion/jboss5
jboss7.completion.bash
# shellcheck shell=bash
about-completion "jboss7 completion"
# shellcheck disable=SC1090
source "${BASH_IT}"/vendor/github.com/rparree/jboss-bash-completion/jboss7
Mind taking a quick pass to normalize yours?
Also wondering why 2207 vs 1090 in your case?
-D
@davidpfarrell Any reason why arent we using git submodules? |
Fixed lint errors |
A couple of reasons. We sometimes need to modify the file in order to make it work within the bash-it framework ie. calling some of our functions, etc ... We don't necessarily need to bring down the entire repo. Bash-it doesn't currently utilize submodules outside of the testing, so regular users don't have to deal with it right now, so bringing it into the standard user experience is a big decision (imho) |
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 surprised the lint check didn't hit the SC1090 - Although I realize now that the other completions are dealing with it wrong ie. we should use source=
instead of disabling it.
So checking the repository for the completion, I notice two things:
- This is already available in homebrew bash-completions
- This only officially supports Bash ^4.x
Not sure if any doc changes or checks should be added but wanted to call it out ...
Changes I do recommend:
- Add repo url to about - Not sure if there's a built-in meta tag for it?
- Add the SC1090 line from the examples - Not sure why its not hitting but I'm sure it will in the future and don't want to break future builds because of it.
@davidpfarrell @NoahGorny can we merge this if everything is fine. My team is waiting for this |
Sorry @tbhaxor my previous comment was a request-for-changes comment, re:
|
@davidpfarrell SC1090 is not triggering on my end either, but 1091 is triggering. Do you want me to disable it also? |
@tbhaxor Does 1091 trigger even when disable=SC1090 is present? The two codes are related and in this case 1091 is being triggered by new-ish behavior for 1090 errors. But it's unclear from the docs if disabling 1090 also disables 1091 in this special case. My thought is is might so try just disabling 1090 and see if that clears ... Alternatively you could add |
Again, where did you get it triggered or just assuming it could trigger? |
…0 in yarn completions
Failing lint errors presumed fixed in #2192 which has been merged ... |
* feat (completion): add yarn completion
* upstream/master: (1190 commits) Add support to powerline themes to override foreground color (Bash-it#2231) ci: Update GitHub actions v2 => v4 (Bash-it#2224) docs: Update Bats libraries links (Bash-it#2225) fix: bumps go version to 1.21.0 and changes go get to go install [terraform] add alias for terraform workspace fix (completion): suppress 1091 in brew (Bash-it#2130) Allow for longer command min duration (Bash-it#2198) Implement yarn completion (Bash-it#2190) Fix lint errors in multiple files (Bash-it#2192) bug: Use C style strings when checking for invalid alias characters (Bash-it#2188) Remove libra chat reference Add more aliases for `git branch`, use long form remove function wrapper around kubectl alias registration bug: Use en_US when fetching EPOCHREALTIME bug:Install shellcheck wget (Bash-it#2173) fix(theme): use correct escape sequence to avoid weird text overwriting chore: Use grep -E / grep -F instead of egrep / fgrep (Bash-it#2164) Fixed broken code blocks in troubleshooting.rst Removed Bash Dependency section from README and added it to troubleshooting.rst Update variable name to match projects.plugin.bash ...
Description
This PR will implement yarn completion from the external vendor
Motivation and Context
Yarn is required while developing the nodejs projects and often as project grows completion is required. This PR fixes that problem.
How Has This Been Tested?
Locally by sourcing
Screenshots (if appropriate):
Types of changes
Checklist:
clean_files.txt
and formatted it usinglint_clean_files.sh
.