public function run() { // find the value given to the command $package = Console::findCommandOptionValue("p|package"); if ($package) { // if <prompt> was passed ask the user for the package name if ($package == "prompt") { $prompt = "what is the name of the package you want to fetch?"; $options = "(ex. pattern-lab/plugin-kss)"; $package = Console::promptInput($prompt, $options); } // make sure it looks like a valid package if (strpos($package, "/") === false) { Console::writeError("that wasn't a valid package name. it should look like <info>pattern-lab/plugin-kss</info>..."); } // run composer via fetch $f = new Fetch(); $f->fetchPackage($package); } else { Console::writeHelpCommand($this->command); } }