<?php

use Toolkit\Stdlib\OS;

$osName = OS::name();
$basePath = Inhere\Kite\Kite::basePath();

return [
    // enable interactive
    'no-interactive' => false,
    'app' => [
        // enable interactive
        'no-interactive' => false,
    ],

    // --------- component object config -----------

    /** @see \Inhere\Kite\Lib\Jump\QuickJump */
    'jumper'         => [
        'datafile' => OS::userHomeDir(".kite/tmp/kite-jump.$osName.json"),
        'aliases'  => [
            'home' => '~',
        ]
    ],
    /** @see \Inhere\Kite\Console\Plugin\PluginManager */
    'pluginManager' => [
        'enable'  => true,
    ],
    // self:webui
    'webui'          => [
        'addr' => '127.0.0.1:8090',
        // 'root' => BASE_PATH . '/public',
        'root' => $basePath . '/public',
    ],
    // @see app/Console/Controller/PhpController.php
    'php:serve'      => [
        'hce-file' => 'test/httptest/http-client.env.json',
        'hce-env'  => getenv('APP_ENV') ?: 'development',
        // 'entry'     => 'public/index.php',
        // document root
        'root'     => 'public',
        'entry'    => 'public/index.php',
        // 'php-bin'  => 'php'
        // 'addr' => '127.0.0.1:8552',
    ],
    /** @see \Inhere\Kite\Console\Listener\BeforeCommandRunListener */
    'autoProxy'      => [
        'envSettings' => [
            // proxy settings
            // export http_proxy=http://127.0.0.1:1081;export https_proxy=http://127.0.0.1:1081;
            // 'http_proxy'  => 'http://127.0.0.1:1081',
            // 'https_proxy' => 'http://127.0.0.1:1081',
        ],
        'groupLimits' => [],
        'commandIds'  => [
            // item is commandID
            // 'php:ghPkg',
        ],
    ],
];
