Skip to content

Commit 662a08c

Browse files
committed
feat(update): imp ergo ext sync show msg
imp ergo ext sync show msg Signed-off-by: ysicing <i@ysicing.me>
1 parent 005b0e7 commit 662a08c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Ergo CHANGELOG
22

3+
- v2.6.7
4+
- 优化`ext sync`
5+
36
- v2.6.6
47
- 优化`ext sync`, 镜像同步后端服务API调整
58

cmd/ext.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,12 @@ func (ext *ExtOptions) syncImage(args []string) {
121121
ext.Log.StopWait()
122122
if len(okargs) > 0 {
123123
table := uitable.New()
124-
table.AddRow("src", "dest")
124+
table.AddRow("src", "acr", "tcr")
125125
for _, r := range okargs {
126126
s := strings.Split(r, "/")
127-
table.AddRow(r, fmt.Sprintf("registry.cn-beijing.aliyuncs.com/k7scn/%v", s[len(s)-1]))
127+
table.AddRow(r,
128+
fmt.Sprintf("registry.cn-beijing.aliyuncs.com/k7scn/%v", s[len(s)-1]),
129+
fmt.Sprintf("ccr.ccs.tencentyun.com/k7scn/%v", s[len(s)-1]))
128130
}
129131
ext.Log.Donef("同步任务已触发, 请稍后重试")
130132
output.EncodeTable(os.Stdout, table)

version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.6
1+
2.6.7

0 commit comments

Comments
 (0)