- system($this->config->ngrok->command . " ". implode(" ", array_map("escapeshellarg", [
- "http",
- "--subdomain=pharext",
- "--authtoken",
- $this->config->ngrok->auth->token,
- "--auth",
- $this->config->ngrok->auth->user .":". $this->config->ngrok->auth->pass,
- "80"
- ])));
+ $exec(Cli\Ngrok::class);
+ }
+ if ($this->args["initdb"]) {
+ $exec(Cli\Initdb::class);
+ }
+ if ($this->args["gen-models"]) {
+ $exec(Cli\GenModels::class);