-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kite.example.php
102 lines (98 loc) · 2.84 KB
/
.kite.example.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
<?php
/**
* you can copy the file as `.kite.php` for custom config kite.
*/
use Toolkit\Stdlib\OS;
$osName = OS::name();
return [
// application config
'app' => [
'no-interactive' => false,
],
'php:serve' => [
'host' => '127.0.0.1:8552',
// document root
'root' => 'public'
],
'logger' => [
'logfile' => BASE_PATH . '/tmp/logs/kite.log',
],
'jumper' => [
'datafile' => BASE_PATH . "/tmp/jump-data.$osName.json",
'aliases' => [
'home' => '~',
],
],
/** @see \Inhere\Kite\Console\Component\AutoSetProxyEnv */
'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',
],
],
'git' => [
// 'auto-sign' => true,
// 'sign-text' => 'inhere <[email protected]>',
],
/** @see Inhere\Kite\Common\GitLocal\GitLab */
'gitlab' => [
'projects' => [
],
],
// tool command usage docs
'manDocs' => [
// if 'lang' not setting, will read from ENV.
// 'lang' => 'en',
'paths' => [
'root' => BASE_PATH . '/resource/mandocs'
],
],
// command aliases. element is: alias command => real command
'aliases' => [],
// custom scripts
'scripts' => [
'echo' => 'echo hi',
'envsearch' => 'env | grep $1',
'test' => [
'echo $SHELL',
'echo hello'
],
// git quick use
'gst' => 'git status',
'st' => 'git status',
'co' => 'git checkout $@',
'br' => 'git branch $?',
'pul' => 'git pul $?',
'pull' => 'git pull $?',
// golang usage
'gofmt' => 'go fmt ./...',
'gotest' => 'go test ./...',
// php tool usage
'csfix' => 'php-cs-fixer fix $1',
'csfix-and-git' => [
'php-cs-fixer fix $1',
'git add . && git commit -m "run php-cs-fixer for the $1"'
],
'phpcs' => 'php-cs-fixer fix',
// docker
'dcnotag' => [
'_meta' => [
'desc' => 'display all no-tags docker images',
],
'docker images -f "dangling=true"'
],
'dcclrnotag' => [
'_meta' => [
'desc' => 'clear all no-tags docker images',
],
'docker rmi $(docker images -f "dangling=true" -q)'
],
],
];