Comments (2)
Hi. I'm not on Ubuntu and I'm not 100% sure what bin/console is. I assume it is some sort of Symfony Console command runner?
Is it just the case that you need to run symfony-autocomplete for bin/console?
I'm on OSX. I use composer and have a run script in that to update all my auto-completions.
(snipped example).
"scripts": {
"update-autocomplete": "scripts/update-autocomplete.sh"
}
That script ...
#!/usr/bin/env bash
echo Building bash auto-completion for artisan
./vendor/bin/symfony-autocomplete ./artisan > $(brew --prefix)/etc/bash_completion.d/artisan
echo Building bash auto-completion for composer
./vendor/bin/symfony-autocomplete composer > $(brew --prefix)/etc/bash_completion.d/composer
echo Building bash auto-completion for phinx
./vendor/bin/symfony-autocomplete ./vendor/robmorgan/phinx/bin/phinx > $(brew --prefix)/etc/bash_completion.d/phinx
echo Building bash auto-completion for wu
./vendor/bin/symfony-autocomplete ./wu > $(brew --prefix)/etc/bash_completion.d/wu
echo Removing bash auto-completion for pipeline as no longer used
rm -rf $(brew --prefix)/etc/bash_completion.d/pipeline
echo Recycle your terminal to load the auto-completions.
Does this help?
Internally, the symfony-autocomplete is attempting to run the command you've supplied with the options list --format=xml
and then parse/process the results.
If bin/console list --format=xml
produces a valid XML file, then symfony-autocomplete should be able to do its thing.
In my script, I'm creating a separate auto completer for each of my commands (and dropping one I no longer need).
This whole process takes around 10s to run as it builds and process all the XML files.
from symfony-console-autocomplete.
No feedback
from symfony-console-autocomplete.
Related Issues (20)
- Usage with docker HOT 4
- Doesn't work on Mac HOT 8
- symfony-autocomplete: command not found HOT 9
- How to utilise git's branch auto-completion for another program?
- Usage in cygwin + win32 PHP: cannot find non standard script HOT 5
- 48
- Doesn't work for the "symfony" cli tool HOT 3
- PHP Fatal error: Uncaught TypeError: Argument 1 passed to Symfony\Component\Process\Process::__construct() must be of the type array, string given HOT 2
- Problem "bash: _get_comp_words_by_ref: command not found" on docker php:7.4-fpm HOT 4
- Contribute this to symfony/console HOT 1
- Compatibility with Symfony local server HOT 2
- ZSH completion fails when descriptions contain quotes or <'s HOT 14
- Autocompletion not working with Acquia CLI HOT 5
- Not working with Symfony 6. HOT 4
- PHP 8.1 deprecated return type HOT 13
- Bats tests don't test for shell code correctness HOT 3
- bin-stub hard-encodes the name to vendor directory
- Symfony 7: missing support
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 symfony-console-autocomplete.