mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-02-03 10:25:52 +00:00
fix CLI::danger method name
This commit is contained in:
parent
2673f3d316
commit
cd30be8147
22
cli/yggo.php
22
cli/yggo.php
@ -3,7 +3,7 @@
|
|||||||
// CLI only to prevent https server connection timeout
|
// CLI only to prevent https server connection timeout
|
||||||
if (php_sapi_name() != 'cli') {
|
if (php_sapi_name() != 'cli') {
|
||||||
|
|
||||||
CLI::error(_('supported command line interface only'));
|
CLI::danger(_('supported command line interface only'));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ $semaphore = sem_get(crc32('cli.yggo'), 1);
|
|||||||
|
|
||||||
if (false === sem_acquire($semaphore, true)) {
|
if (false === sem_acquire($semaphore, true)) {
|
||||||
|
|
||||||
CLI::error(_('Process locked by another thread.'));
|
CLI::danger(_('Process locked by another thread.'));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ switch ($argv[1]) {
|
|||||||
case 'snap':
|
case 'snap':
|
||||||
|
|
||||||
if (empty($argv[2])) {
|
if (empty($argv[2])) {
|
||||||
CLI::error(_('snap method requires action argument'));
|
CLI::danger(_('snap method requires action argument'));
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($argv[2]) {
|
switch ($argv[2]) {
|
||||||
@ -179,7 +179,7 @@ switch ($argv[1]) {
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
||||||
CLI::error(_('undefined action argument'));
|
CLI::danger(_('undefined action argument'));
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@ -187,7 +187,7 @@ switch ($argv[1]) {
|
|||||||
|
|
||||||
if (empty($argv[2])) {
|
if (empty($argv[2])) {
|
||||||
|
|
||||||
CLI::error(_('hostPage method requires action argument'));
|
CLI::danger(_('hostPage method requires action argument'));
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($argv[2]) {
|
switch ($argv[2]) {
|
||||||
@ -196,7 +196,7 @@ switch ($argv[1]) {
|
|||||||
|
|
||||||
if (empty($argv[3])) {
|
if (empty($argv[3])) {
|
||||||
|
|
||||||
CLI::error(_('hostPage rank requires action argument'));
|
CLI::danger(_('hostPage rank requires action argument'));
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($argv[3]) {
|
switch ($argv[3]) {
|
||||||
@ -217,7 +217,7 @@ switch ($argv[1]) {
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
||||||
CLI::error(_('undefined action argument'));
|
CLI::danger(_('undefined action argument'));
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@ -231,7 +231,7 @@ switch ($argv[1]) {
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
||||||
CLI::error(_('undefined action argument'));
|
CLI::danger(_('undefined action argument'));
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@ -239,7 +239,7 @@ switch ($argv[1]) {
|
|||||||
|
|
||||||
if (empty($argv[2])) {
|
if (empty($argv[2])) {
|
||||||
|
|
||||||
CLI::error(_('hostPageDom method requires action argument'));
|
CLI::danger(_('hostPageDom method requires action argument'));
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($argv[2]) {
|
switch ($argv[2]) {
|
||||||
@ -305,7 +305,7 @@ switch ($argv[1]) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
CLI::error(_('CRAWL_HOST_PAGE_DOM_SELECTORS not provided in the configuration file'));
|
CLI::danger(_('CRAWL_HOST_PAGE_DOM_SELECTORS not provided in the configuration file'));
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@ -319,7 +319,7 @@ switch ($argv[1]) {
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
||||||
CLI::error(_('undefined action argument'));
|
CLI::danger(_('undefined action argument'));
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user