Commit a1f4310 1 parent f57abe6 commit a1f4310 Copy full SHA for a1f4310
File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 7
7
-output ="dist/{{.Dir}}_{{.OS}}_{{.Arch}}" \
8
8
-ldflags "-X 'github.com/mritd/mmh/cmd.Version=${BUILD_VERSION}' \
9
9
-X 'github.com/mritd/mmh/cmd.BuildDate=${BUILD_DATE}' \
10
- -X 'github.com/mritd/mmh/cmd.CommitID=${COMMIT_SHA1}' \
11
- -w -s"
10
+ -X 'github.com/mritd/mmh/cmd.CommitID=${COMMIT_SHA1}'"
12
11
13
12
release : all
14
13
ghr -u mritd -t $(GITHUB_RELEASE_TOKEN ) -replace -recreate --debug ${BUILD_VERSION} dist
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ Flags:
186
186
187
187
# ## 多环境切换
188
188
189
- 考虑到同时将多个环境的配置放在同一个配置文件中会有混乱,同时也可能出现误操作的情况,`v1.3.0` 版本增加了 `context` 的概念;每个 `context` 被认为是一种环境,比如 `prod`、`test`、`uat` 等,每个环境的机器配置被分成了独立的文件以方便单独修改与加载;控制使用哪个 `context` 可以使用 `mcx use CONTEXT_NAME` 命令
189
+ 考虑到同时将多个环境的配置放在同一个配置文件中会有混乱,同时也可能出现误操作的情况,`v1.3.0` 版本增加了 `context` 的概念;每个 `context` 被认为是一种环境,比如 `prod`、`test`、`uat` 等,每个环境的机器配置被分成了独立的文件以方便单独修改与加载;控制使用哪个 `context` 可以使用 `mcx set CONTEXT_NAME` 命令
190
190
191
191
` ` ` sh
192
192
➜ ~ mcx --help
@@ -203,7 +203,7 @@ Aliases:
203
203
Available Commands:
204
204
help Help about any command
205
205
ls List context
206
- use Use context
206
+ set Set context
207
207
208
208
Flags:
209
209
-h, --help help for ctx
You can’t perform that action at this time.
0 commit comments