Skip to content

Commit

Permalink
Fix typos (#105)
Browse files Browse the repository at this point in the history
* Fix typos

* Update repo.go
  • Loading branch information
mosheavni authored Jun 16, 2021
1 parent f3e65a2 commit 3f70d9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
2 changes: 1 addition & 1 deletion docs/commands/argocd-autopilot_repo_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ argocd-autopilot repo create [flags]
-h, --help help for create
--host string The git provider address (for on-premise git providers)
-n, --name string The name of the repository
-o, --owner string The name of the owner or organiaion
-o, --owner string The name of the owner or organization
-p, --provider string The git provider, one of: github (default "github")
--public If true, will create the repository as public (default is false)
```
Expand Down

0 comments on commit 3f70d9e

Please sign in to comment.