4 namespace Stecman\Component\Symfony\Console\BashCompletion\Completion;
7 * Shell Path Completion
9 * Defers completion to the calling shell's built-in path completion functionality.
11 class ShellPathCompletion implements CompletionInterface
14 * Exit code set up to trigger path completion in the completion hooks
15 * @see Stecman\Component\Symfony\Console\BashCompletion\HookFactory
17 const PATH_COMPLETION_EXIT_CODE = 200;
21 protected $commandName;
23 protected $targetName;
25 public function __construct($commandName, $targetName, $type)
27 $this->commandName = $commandName;
28 $this->targetName = $targetName;
35 public function getType()
43 public function getCommandName()
45 return $this->commandName;
51 public function getTargetName()
53 return $this->targetName;
57 * Exit with a status code configured to defer completion to the shell
59 * @see \Stecman\Component\Symfony\Console\BashCompletion\HookFactory::$hooks
63 exit(self::PATH_COMPLETION_EXIT_CODE);