Skip to content

Commit

Permalink
fix typos in bootstrap cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivam Mukhade committed Apr 20, 2022
1 parent da2dd76 commit 3b54e44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/cmd/tknpac/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const (
defaultProviderType = "github-app"
)

var providerTargets = []string{"github-app", "github-enteprise-app"}
var providerTargets = []string{"github-app", "github-enterprise-app"}

type bootstrapOpts struct {
providerType string
Expand Down Expand Up @@ -182,7 +182,7 @@ func GithubApp(run *params.Run, ioStreams *cli.IOStreams) *cobra.Command {
}

if b, _ := askYN(false, "", "Are you using Github Enterprise?"); b {
opts.providerType = "github-enteprise-app"
opts.providerType = "github-enterprise-app"
}

return createSecret(ctx, run, opts)
Expand Down Expand Up @@ -229,9 +229,9 @@ func addGithubAppFlag(cmd *cobra.Command, opts *bootstrapOpts) {
cmd.PersistentFlags().StringVar(&opts.GithubOrganizationName, "github-organization-name", "", "Whether you want to target an organization instead of the current user")
cmd.PersistentFlags().StringVar(&opts.GithubApplicationName, "github-application-name", "", "Github Application Name")
cmd.PersistentFlags().StringVar(&opts.GithubApplicationURL, "github-application-url", "", "Github Application URL")
cmd.PersistentFlags().StringVarP(&opts.GithubAPIURL, "github-api-url", "", "", "Github Enteprise API URL")
cmd.PersistentFlags().StringVarP(&opts.GithubAPIURL, "github-api-url", "", "", "Github Enterprise API URL")
cmd.PersistentFlags().StringVar(&opts.RouteName, "route-url", "", "the public URL for the pipelines-as-code controller")
cmd.PersistentFlags().BoolVar(&opts.installNightly, "nightly", false, "Wether to install the nightly Pipelines as Code")
cmd.PersistentFlags().BoolVar(&opts.installNightly, "nightly", false, "Whether to install the nightly Pipelines as Code")
cmd.PersistentFlags().IntVar(&opts.webserverPort, "webserver-port", 8080, "webserver-port")
cmd.PersistentFlags().StringVarP(&opts.providerType, "install-type", "t", defaultProviderType,
fmt.Sprintf("target install type, choices are: %s ", strings.Join(providerTargets, ", ")))
Expand Down

0 comments on commit 3b54e44

Please sign in to comment.