From 3f70d9ec70b772572bc0f5dbc6899eb072971f9c Mon Sep 17 00:00:00 2001 From: Moshe Avni Date: Wed, 16 Jun 2021 19:22:26 +0300 Subject: [PATCH] Fix typos (#105) * Fix typos * Update repo.go --- cmd/commands/repo.go | 4 ++-- docs/commands/argocd-autopilot_repo_create.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/commands/repo.go b/cmd/commands/repo.go index f6805848..386a1640 100644 --- a/cmd/commands/repo.go +++ b/cmd/commands/repo.go @@ -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(), "|"))) @@ -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(), "|"))) diff --git a/docs/commands/argocd-autopilot_repo_create.md b/docs/commands/argocd-autopilot_repo_create.md index b5497fd3..27667551 100644 --- a/docs/commands/argocd-autopilot_repo_create.md +++ b/docs/commands/argocd-autopilot_repo_create.md @@ -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) ```