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