Comments (10)
I'm sure it's also possible on Mac, but I have nu clue how to do it.
from wp-cli.
I see homebrew has a few:
https://github.com/andreascreten/homebrew/blob/master/Library/Contributions/brew_bash_completion.sh
https://github.com/andreascreten/homebrew/blob/master/Library/Contributions/brew_fish_completion.fish
https://github.com/andreascreten/homebrew/blob/master/Library/Contributions/brew_zsh_completion.zsh
from wp-cli.
Those are for zsh, the non default Mac shell. I prefer to go with the build in shell.
from wp-cli.
They're all for zsh? I see one for zsh, one for bash and one for fish.
from wp-cli.
I wrote a very basic implementation. But I'm afraid we have to do it dynamically somehow, because people will add commands from within their plugins.
from wp-cli.
It's better than no completion at all. :)
You could re-use the code that generates the list of commands when doing wp help
.
from wp-cli.
We now have completions for sub-commands as well.
The problem is that now, after a completion, you can't go back and erase the command you wrote. The only thing you can do is type ahead and/or press ENTER.
It's obviously related to the invocation of the wp
command, but I have no idea how to fix it.
from wp-cli.
It seems to be a problem specific to Ubuntu: http://stackoverflow.com/questions/3701226/bash-completion-prevents-backspace
from wp-cli.
On Mac it is working as expected (and totally kicking ass).
from wp-cli.
Ok, I think this is good enough for now. If I find a workaround for my Ubuntu problem, I'll just commit it.
from wp-cli.
Related Issues (20)
- Release checklist for v2.9.1 HOT 2
- Release Checklist for WP-CLI v2.9.1 HOT 1
- WP_CLI_PHP ignored even when installing from deb not phar HOT 5
- No colorized output when returning an object from WP_CLI:runcommand() HOT 1
- PHP parse error HOT 3
- WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version HOT 8
- Owners and Permissions scheme HOT 1
- Release checklist for v2.10.0 HOT 2
- Failing tests because of `mysqldump --skip-column-statistics` arg
- PHP deprecation warnings triggered by calls to `WP_CLI::error()` and `WP_CLI::halt()` HOT 1
- PHP deprecation warning(s) triggered by `Utils\http_request()` HOT 1
- Error: Wp cli project based installation is not working in Ubuntu 22.04.3
- phar version is out-of-date HOT 4
- wp theme status <theme-name> throws: Error: Couldn't find theme-status.mustache HOT 14
- Docs: Improve Inline Comments
- Bug Report: wpcli Hangs When Attempting to Update Hacked WordPress Sites HOT 2
- Shipping unprefixed dependencies causes conflicts. HOT 4
- Conflict-free distribution - current state and issues that need solving HOT 2
- Wordwrapping in the tabular output HOT 1
- Difficult to create posts with blocks HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-cli.