Skip to content

Commit

Permalink
update: update some for run, search commands
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed May 11, 2022
1 parent 5be2f2a commit 7dba778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Command/RunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected function execute(Input $input, Output $output)

// support search
$kw = $this->flags->getOpt('search') ?: $name;
if ($this->flags->hasInputArg('search')) {
if ($this->flags->hasInputOpt('search')) {
$this->searchScripts($output, $kw);
return;
}
Expand Down
1 change: 1 addition & 0 deletions app/Console/Command/SearchCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class SearchCommand extends Command
private array $engines = [
'google' => 'https://www.google.com/search?q=',
'bing' => 'https://www.bing.com/search?q=',
'you' => 'https://you.com/search?q=',
'yahoo' => 'https://search.yahoo.com/search?p=',
'duckduckgo' => 'https://www.duckduckgo.com/?q=',
'startpage' => 'https://www.startpage.com/do/search?q=',
Expand Down

0 comments on commit 7dba778

Please sign in to comment.