public function run(array $arguments) { Terminal::info("Installed packages:\n"); foreach ($this->deps->getPackages() as $package) { Terminal::bold('* ' . $package->getName() . "\n"); } }
public function run(array $arguments) { $json = $this->deps->nearestJson(); $package = new Package(dirname($json)); $porcelain = count($arguments) && $arguments[0] == 'porcelain'; if (!$porcelain) { Terminal::info("From {$json}\n\n"); Terminal::bold("* project name: " . $package->getName() . "\n"); } $dependencies = $package->getDependencies(); if ($porcelain) { echo implode(':', $dependencies) . "\n"; } else { if ($dependencies) { Terminal::bold("* dependencies:\n"); foreach ($dependencies as $dep) { echo " - {$dep} "; if ($this->deps->hasPackage($dep)) { Terminal::success("(installed)"); } else { Terminal::warning("(not installed)"); } echo "\n"; } } else { Terminal::bold("* no dependencies\n"); } } }
public function run(array $arguments) { Terminal::info("Installed packages:\n"); foreach ($this->deps->getPackages() as $package) { $this->printStatus($package); } }
public function run(array $arguments) { $remotes = $this->deps->getRemotes(); $current = $remotes->getCurrent(); Terminal::info("Remotes:\n"); foreach ($remotes->getRemotes() as $remote => $addr) { if ($remote == $current) { Terminal::success("* {$remote} ({$addr})\n"); } else { Terminal::bold("* {$remote} ({$addr})\n"); } } }
public function build($dep) { $this->updateEnv(); Terminal::info("* Building {$dep}...\n"); if ($this->hasPackage($dep)) { $package = $this->getPackage($dep); $package->build(); } else { throw new \Exception("Unable to build not existing package {$dep}"); } }
public function run(array $arguments) { Terminal::info("* Updating deps from git...\n"); $dir = $this->deps->getDirectory(); OS::run("cd {$dir}; git pull"); }
public function run(array $arguments) { Terminal::info("Reloading pathes\n"); return true; }