Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #105

Merged
merged 2 commits into from
Jun 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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