Skip to content

Commit

Permalink
Improved YetiForce CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuszkrzaczkowski committed Dec 14, 2021
1 parent 202449a commit acebc5f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/Cli/Base.php
Expand Up @@ -2,7 +2,7 @@
/**
* Base cli file.
*
* @package App
* @package Cli
*
* @copyright YetiForce Sp. z o.o
* @license YetiForce Public License 4.0 (licenses/LicenseEN.txt or yetiforce.com)
Expand Down
2 changes: 1 addition & 1 deletion app/Cli/Cleaner.php
Expand Up @@ -2,7 +2,7 @@
/**
* Cleaner cli file.
*
* @package App
* @package Cli
*
* @copyright YetiForce Sp. z o.o
* @license YetiForce Public License 4.0 (licenses/LicenseEN.txt or yetiforce.com)
Expand Down
2 changes: 1 addition & 1 deletion app/Cli/Environment.php
Expand Up @@ -2,7 +2,7 @@
/**
* Environment cli file.
*
* @package App
* @package Cli
*
* @copyright YetiForce Sp. z o.o
* @license YetiForce Public License 4.0 (licenses/LicenseEN.txt or yetiforce.com)
Expand Down
2 changes: 1 addition & 1 deletion app/Cli/System.php
Expand Up @@ -2,7 +2,7 @@
/**
* System cli file.
*
* @package App
* @package Cli
*
* @copyright YetiForce Sp. z o.o
* @license YetiForce Public License 4.0 (licenses/LicenseEN.txt or yetiforce.com)
Expand Down
2 changes: 1 addition & 1 deletion app/Cli/Users.php
Expand Up @@ -2,7 +2,7 @@
/**
* Users cli file.
*
* @package App
* @package Cli
*
* @copyright YetiForce Sp. z o.o
* @license YetiForce Public License 4.0 (licenses/LicenseEN.txt or yetiforce.com)
Expand Down
9 changes: 7 additions & 2 deletions cli.php
@@ -1,14 +1,19 @@
<?php
/**
* YetiForce CLI.
*
* @package Cli
* @copyright YetiForce Sp. z o.o
* @license YetiForce Public License 4.0 (licenses/LicenseEN.txt or yetiforce.com)
* @author Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com>
*/
chdir(__DIR__);
try {
require __DIR__ . '/include/RequirementsValidation.php';
} catch (\Throwable $th) {
echo "Try\n/usr/local/php80/bin/php80 cli.php";
return;
}

require __DIR__ . '/include/RequirementsValidation.php';
require __DIR__ . '/include/main/WebUI.php';

\App\Process::$requestMode = 'Cli';
Expand Down

0 comments on commit acebc5f

Please sign in to comment.