Giter Club home page Giter Club logo

Comments (2)

rquadling avatar rquadling commented on May 26, 2024

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.

rquadling avatar rquadling commented on May 26, 2024

No feedback

from symfony-console-autocomplete.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.