bootstrap: virtual commands options
[pharext/pharext.org] / app / bootstrap / cli.php
1 <?php
2
3 namespace app;
4
5 use pharext\Cli\Args;
6
7 require_once __DIR__."/config.php";
8 require_once __DIR__."/github.php";
9
10 /* @var $injector \Auryn\Injector */
11
12 $injector->share(Cli::class);
13
14 $injector->share(Args::class)
15 ->define(Args::class, [
16 ":spec" => [
17 [0, "command", "Command to run\n- ngrok: Run ngrok\n- initdb: Create database\n- gen-models: Generate pq\\Gatweay models", Args::SINGLE|Args::REQUIRED],
18 ["h", "help", "Show this help", Args::HALT],
19 ]
20 ]);