-
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
add truffle cli bash completions #2107
Conversation
@gaelicWizard Could you help me understand meaning of |
@tbhaxor, usually lots of people do complicated use of options=('--version' '--help' '--verbose')
COMPREPLY=( $(compgen -W "${options[*]} -- "$cur") ) The point of code like this is to filter the possible completions to only match what has already been typed, as opposed to all possible options. E.g., don't offer BUT, that whole mess is unnecessary. The completion function can just always return all available options without filtering, and then adding
Bash manual:
The ampersand is not documented in the manual, but the web site says this:
|
@gaelicWizard - can you take a look at the failing test? this also happens to me locally ( |
@NoahGorny I've been seeing this one intermittently of late, but can't reproduce on my own OSX 11.6. It's just skipping some tests!!!! It's driving me batty. My best guess is that something in |
@gaelicWizard @NoahGorny This is kinda false positive as in this PR the test failed on macos 11 and in recent push it failed on macos 10.15. Check this |
Not required |
Description
Truffle is a nodejs tool used for development of the blockchain projects by provide an features like scaffolding, testing and deployment
Motivation and Context
Couldn't find any completion over internet. So tried my own
How Has This Been Tested?
Manually on the local system in macOS
Screenshots (if appropriate):
Types of changes
Checklist:
clean_files.txt
and formatted it usinglint_clean_files.sh
.