We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 890816c commit a197fe9Copy full SHA for a197fe9
practise/image-practise/main.go
@@ -21,15 +21,15 @@ var (
21
user = flag.String("user", "", "docker register user")
22
password = flag.String("password", "", "docker register password")
23
24
- filePath = flag.String("file-path", "", "image file path")
+ filePath = flag.String("configFile", "./config.yaml", "config file")
25
)
26
27
func main() {
28
klog.InitFlags(nil)
29
flag.Parse()
30
31
c := config.New()
32
- c.SetConfigFile("./config.yaml")
+ c.SetConfigFile(*filePath)
33
c.SetConfigType("yaml")
34
35
var cfg image.Config
0 commit comments