From c6b9466370bc32f104ceeb28bf0416d99d90a223 Mon Sep 17 00:00:00 2001 From: Vaidas Jablonskis Date: Thu, 21 Jul 2016 20:17:54 +0100 Subject: [PATCH] Fix cli args typo This was preventing from using --github-secret while env var worked. --- drone/server.go | 4 ++-- router/middleware/remote.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drone/server.go b/drone/server.go index a1b9fb06f..f94c6afaf 100644 --- a/drone/server.go +++ b/drone/server.go @@ -110,7 +110,7 @@ var serverCmd = cli.Command{ }, cli.StringFlag{ EnvVar: "DRONE_GITHUB_SECRET", - Name: "github-sercret", + Name: "github-secret", Usage: "github oauth2 client secret", }, cli.StringSliceFlag{ @@ -203,7 +203,7 @@ var serverCmd = cli.Command{ }, cli.StringFlag{ EnvVar: "DRONE_GITLAB_SECRET", - Name: "gitlab-sercret", + Name: "gitlab-secret", Usage: "gitlab oauth2 client secret", }, cli.StringFlag{ diff --git a/router/middleware/remote.go b/router/middleware/remote.go index b0afc66ed..7d0d56f79 100644 --- a/router/middleware/remote.go +++ b/router/middleware/remote.go @@ -80,7 +80,7 @@ func setupGitlab(c *cli.Context) (remote.Remote, error) { return gitlab.New(gitlab.Opts{ URL: c.String("gitlab-server"), Client: c.String("gitlab-client"), - Secret: c.String("gitlab-sercret"), + Secret: c.String("gitlab-secret"), Username: c.String("gitlab-git-username"), Password: c.String("gitlab-git-password"), PrivateMode: c.Bool("gitlab-private-mode"), @@ -94,7 +94,7 @@ func setupGithub(c *cli.Context) (remote.Remote, error) { URL: c.String("github-server"), Context: c.String("github-context"), Client: c.String("github-client"), - Secret: c.String("github-sercret"), + Secret: c.String("github-secret"), Scopes: c.StringSlice("github-scope"), Username: c.String("github-git-username"), Password: c.String("github-git-password"),