Updated CLI tools

This commit is contained in:
Eldad Fux
2020-10-15 11:00:14 +03:00
parent 7c17a897fa
commit 27983ad2c8
2 changed files with 2 additions and 12 deletions
-1
View File
@@ -1,4 +1,3 @@
#!/bin/env php
<?php
require_once __DIR__.'/init.php';
+2 -11
View File
@@ -1,9 +1,5 @@
<?php
use Utopia\App;
use Utopia\CLI\CLI;
use Utopia\Config\Config;
use Utopia\CLI\Console;
use Appwrite\Spec\Swagger2;
@@ -20,11 +16,8 @@ use Appwrite\SDK\Language\Go;
use Appwrite\SDK\Language\Java;
use Appwrite\SDK\Language\Swift;
require_once __DIR__.'/../init.php';
$cli = new CLI();
$cli
->task('generate')
->task('sdks')
->action(function () {
function getSSLPage($url)
{
@@ -211,6 +204,4 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
}
exit();
});
$cli->run();
});