1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
shylinux 2021-09-01 11:27:41 +08:00
parent 8c434eb4df
commit 33a485dee2

View File

@ -164,22 +164,22 @@ echo "hello world"
var _contexts = kit.Dict(
"project", `# 创建项目
source <(curl -fsSL https://shylinux.com) project
ctx_temp=$(mktemp); curl -fsSL https://shylinux.com -o $ctx_temp; source $ctx_temp project
`,
"source", `# 源码安装
source <(curl -fsSL https://shylinux.com) source
ctx_temp=$(mktemp); curl -fsSL https://shylinux.com -o $ctx_temp; source $ctx_temp source
`,
"binary", `# 应用安装
source <(curl -fsSL https://shylinux.com) binary
ctx_temp=$(mktemp); curl -fsSL https://shylinux.com -o $ctx_temp; source $ctx_temp binary
`,
"miss", `# 开发环境
export ctx_dev={{.Option "httphost"}}; source <(curl -fsSL $ctx_dev) dev
export ctx_dev={{.Option "httphost"}}; ctx_temp=$(mktemp); curl -fsSL $ctx_dev -o $ctx_temp; source $ctx_temp dev
`,
"base", `# 生产环境
export ctx_dev={{.Option "httphost"}}; source <(curl -fsSL $ctx_dev) app
export ctx_dev={{.Option "httphost"}}; ctx_temp=$(mktemp); curl -fsSL $ctx_dev -o $ctx_temp; source $ctx_temp app
`,
"tmux", `# 终端环境
export ctx_dev={{.Option "httphost"}}; source <(curl -fsSL $ctx_dev)
export ctx_dev={{.Option "httphost"}}; ctx_temp=$(mktemp); curl -fsSL $ctx_dev -o $ctx_temp; source $ctx_temp
`,
"tool", `# 群组环境
mkdir contexts; cd contexts