protected function execute(InputInterface $input, OutputInterface $output)
{
$url = self::$config->get('service.docs_url');
$search = $input->getArgument('search');
if ($search) {
$query = $this->getSearchQuery($search);
// @todo provide native or other search options?
//$url .= '/search?q=' . urlencode($term);
// Use Google search.
$hostname = parse_url(self::$config->get('service.docs_url'), PHP_URL_HOST);
$url = 'https://www.google.com/search?q=' . urlencode('site:' . $hostname . ' ' . $query);
}
$this->openUrl($url, $input, $output);
}