Updated CLI tools
This commit is contained in:
parent
7c17a897fa
commit
27983ad2c8
|
@ -1,4 +1,3 @@
|
|||
#!/bin/env php
|
||||
<?php
|
||||
|
||||
require_once __DIR__.'/init.php';
|
||||
|
|
|
@ -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();
|
||||
});
|
Loading…
Reference in a new issue