Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions practise/image-practise/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ var (
user = flag.String("user", "", "docker register user")
password = flag.String("password", "", "docker register password")

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

func main() {
klog.InitFlags(nil)
flag.Parse()

c := config.New()
c.SetConfigFile("./config.yaml")
c.SetConfigFile(*filePath)
c.SetConfigType("yaml")

var cfg image.Config
Expand Down
Loading