#!/usr/bin/env php
<?php

use Inhere\Kite\Console\CliApplication;
use Inhere\Kite\Kite;

require dirname(__DIR__) . '/app/boot.php';

$app = new CliApplication([
    'name'      => 'kite',
    'desc'      => 'Kite is a tool for help development',
    'rootPath'  => Kite::basePath(),
    'version'   => Kite::VERSION,
    'homepage'  => Kite::HOMEPAGE,
    'publishAt' => '2020.05.24',
    'updateAt'  => date('Y.m.d'),
]);

// register routes
require dirname(__DIR__) . '/app/Console/routes.php';

$app->addAliases('self:update', [
    'selfupdate',
    'self-update',
    'updateself',
    'update-self',
    'upself',
    'selfup'
]);

// start application
$app->run();
