Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

The "AbstractCommand::initialize" method isn't called from "CompletionAwareInterface::completeOptionValues" and "CompletionAwareInterface::completeArgumentValues" methods and therefore command dependencies stay uninitialized during auto-completion process.

Solution

  1. create the "AbstractCommand::initDependencies" method
  2. make "AbstractCommand" implement the "CompletionAwareInterface" and in each method:
    1. call the "initDependencies" method
    2. return empty suggestions list
  3. call "initDependencies" method from "initialize" method as well.

Related Tasks

  • No labels