title: Symfony Console tab completion
body: <p>I have an application with a Symfony Console based CLI. The application does not use the Symfony framework, just the Symfony Console component.</p>
  
  <p>When I execute</p>
  
  <pre><code>php app/myapp
  </code></pre>
  
  <p>I get the usual overview with the name, version, options and registered commands shown. Suppose I just have one command, called "displaykittens". What I want to be able to do is</p>
  
  <pre><code>php app/myapp d &lt;TAB&gt;
  </code></pre>
  
  <p>And have it complete to</p>
  
  <pre><code>php app/myapp displaykittens
  </code></pre>
  
  <p>As is kinda expected in a modern unix environment. Unfortunately there appears to be no tab completion whatsoever. The Console Component itself <a href="http://symfony.com/blog/new-in-symfony-2-2-autocomplete-on-the-command-line" rel="nofollow">provides an utility that allows doing something along these lines</a> in commands themselves. That does not help me with getting tab completion for the commands though. Is this possible somehow?</p>