fix style

main
Ariadne Conill 2022-08-04 16:43:37 -05:00
parent 95b02aa836
commit 4971944761
1 changed files with 9 additions and 9 deletions

16
main.go
View File

@ -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
} }