-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
109 lines (104 loc) · 2.93 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php declare(strict_types=1);
use Toolkit\Stdlib\OS;
$basePath = Inhere\Kite\Kite::basePath();
return [
'app' => [
'debug' => true,
'rootPath' => BASE_PATH,
],
'logger' => [
'name' => 'Kite',
'logfile' => OS::userCacheDir('kite.log'),
],
'git' => [
// 'auto-sign' => true,
// 'sign-text' => 'inhere <[email protected]>',
// ----- gitflow ----
// remote
'mainRemote' => 'main',
'forkRemote' => 'origin',
],
'gitlab' => [
// remote
'mainRemote' => 'main',
'forkRemote' => 'origin',
// group
'defaultGroup' => 'group',
'defaultForkGroup' => 'inhere',
'redirectGit' => [
'*'
],
// gitlab api config
'baseApi' => '',
],
'github' => [
// remote
'mainRemote' => 'main',
'forkRemote' => 'origin',
// group
'defaultGroup' => 'swoft',
'defaultForkGroup' => 'ulue',
'defaultBranch' => 'main',
'redirectGit' => [
'*'
],
// github api config
// 'baseApi' => '',
],
'osEnv' => [
// env settings
],
'osPathEnv' => [
// os path env settings
// '/path/to/my-tool/bin',
],
'proxyEnv' => [
// proxy settings
// 'http_proxy' => 'http://127.0.0.1:1081',
// 'https_proxy' => 'http://127.0.0.1:1081',
],
'jenkins' => [
'hostUrl' => env('JK_HOST_URL'),
'username' => env('JK_UNAME'),
'password' => env('JK_PASSWD'),
'apiToken' => env('JK_API_TOKEN'),
],
// tool command usage docs
'manDocs' => [
// if 'lang' not setting, will read from ENV.
// 'lang' => 'en',
'fallbackLang' => 'en',
'paths' => [
'root' => $basePath . '/resource/mandocs'
],
],
/** @see \Inhere\Kite\Console\Plugin\PluginManager */
'pluginManager' => [
'enable' => true,
'pluginDirs' => [
// BASE_PATH . '/plugin'
$basePath . '/plugin',
$basePath . '/custom/plugin',
// dir => namespace. TODO
// $basePath . '/custom/plugin' => "Custom\\Plugin\\",
],
],
/** @see \Inhere\Kite\Component\ScriptRunner */
'scriptRunner' => [
'enable' => true,
],
'scriptDirs' => [
// BASE_PATH . '/script',
$basePath . '/script',
$basePath . '/custom/script',
],
// custom scripts for quick run an command
'scripts' => require 'scripts.php',
// command aliases. element is: alias command => real command
'aliases' => require 'aliases.php',
// custom tools management
'toolManager' => [
'workdir' => '',
],
'tools' => require 'tools.php',
];