Skip to content

Commit a197fe9

Browse files
authored
支持镜像配置文件指定 (#112)
1 parent 890816c commit a197fe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

practise/image-practise/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ var (
2121
user = flag.String("user", "", "docker register user")
2222
password = flag.String("password", "", "docker register password")
2323

24-
filePath = flag.String("file-path", "", "image file path")
24+
filePath = flag.String("configFile", "./config.yaml", "config file")
2525
)
2626

2727
func main() {
2828
klog.InitFlags(nil)
2929
flag.Parse()
3030

3131
c := config.New()
32-
c.SetConfigFile("./config.yaml")
32+
c.SetConfigFile(*filePath)
3333
c.SetConfigType("yaml")
3434

3535
var cfg image.Config

0 commit comments

Comments
 (0)