packager = $packager;
$this->isWindows = $isWindows;
parent::__construct();
}
protected function configure()
{
$this->setName('install')
->setDescription('Install phar into system wide binary directory' . ($this->isWindows ? ' (not available on Windows)' : ''))
->addArgument('project', InputArgument::OPTIONAL, 'Project name or path', '.')
->addArgument('target', InputArgument::OPTIONAL, 'Path to install to', '/usr/local/bin');
}
protected function execute(InputInterface $input, OutputInterface $output)
{
if ($this->isWindows) {
$output->writeln('