fix style
parent
95b02aa836
commit
4971944761
16
main.go
16
main.go
|
@ -41,18 +41,18 @@ func main() {
|
|||
app.Version = version
|
||||
app.Flags = []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "registry",
|
||||
Usage: "docker registry for login",
|
||||
Name: "registry",
|
||||
Usage: "docker registry for login",
|
||||
EnvVar: "PLUGIN_REGISTRY",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "username",
|
||||
Usage: "username for login",
|
||||
Name: "username",
|
||||
Usage: "username for login",
|
||||
EnvVar: "PLUGIN_USERNAME",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "password",
|
||||
Usage: "password for login",
|
||||
Name: "password",
|
||||
Usage: "password for login",
|
||||
EnvVar: "PLUGIN_PASSWORD",
|
||||
},
|
||||
}
|
||||
|
@ -90,8 +90,8 @@ func run(c *cli.Context) error {
|
|||
|
||||
if err := creds.Store(types.AuthConfig{
|
||||
ServerAddress: regName,
|
||||
Username: user,
|
||||
Password: pass,
|
||||
Username: user,
|
||||
Password: pass,
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue