Skip to content

Commit

Permalink
Update repo.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mosheavni authored Jun 16, 2021
1 parent d9ca9c6 commit 0c8512d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/commands/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func AddRepoCreateFlags(cmd *cobra.Command, prefix string) *RepoCreateOptions {

envPrefix := strings.ReplaceAll(strings.ToUpper(prefix), "-", "_")

cmd.Flags().StringVar(&opts.Owner, prefix+"owner", "", "The name of the owner or organiaion")
cmd.Flags().StringVar(&opts.Owner, prefix+"owner", "", "The name of the owner or organization")
cmd.Flags().StringVar(&opts.Repo, prefix+"name", "", "The name of the repository")
cmd.Flags().StringVar(&opts.Token, prefix+"git-token", "", fmt.Sprintf("Your git provider api token [%sGIT_TOKEN]", envPrefix))
cmd.Flags().StringVar(&opts.Provider, prefix+"provider", "github", fmt.Sprintf("The git provider, one of: %v", strings.Join(git.Providers(), "|")))
Expand All @@ -216,7 +216,7 @@ func AddRepoCreateFlags(cmd *cobra.Command, prefix string) *RepoCreateOptions {

die(viper.BindEnv(prefix+"git-token", envPrefix+"GIT_TOKEN"))
} else {
cmd.Flags().StringVarP(&opts.Owner, "owner", "o", "", "The name of the owner or organiaion")
cmd.Flags().StringVarP(&opts.Owner, "owner", "o", "", "The name of the owner or organization")
cmd.Flags().StringVarP(&opts.Repo, "name", "n", "", "The name of the repository")
cmd.Flags().StringVarP(&opts.Token, "git-token", "t", "", "Your git provider api token [GIT_TOKEN]")
cmd.Flags().StringVarP(&opts.Provider, "provider", "p", "github", fmt.Sprintf("The git provider, one of: %v", strings.Join(git.Providers(), "|")))
Expand Down

0 comments on commit 0c8512d

Please sign in to comment.