Skip to content

Commit

Permalink
Do not rely on --provider for quickstart, default to github
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslav Dimitrov <[email protected]>
  • Loading branch information
rdimitrov committed Nov 16, 2023
1 parent 528b71b commit 761ddc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ In just a few seconds, you will register your repositories and enable secret sca
To do so, run:

```bash
minder quickstart --provider github
minder quickstart
```

This will prompt you to enroll your provider, select the repositories you'd like, create the `secret_scanning`
Expand Down
5 changes: 1 addition & 4 deletions cmd/cli/app/quickstart/quickstart.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,7 @@ var cmd = &cobra.Command{
func init() {
app.RootCmd.AddCommand(cmd)
cmd.Flags().StringP("project", "r", "", "Project to create the quickstart profile in")
cmd.Flags().StringP("provider", "p", "", "Name of the provider")
cmd.Flags().StringP("provider", "p", "github", "Name of the provider")
cmd.Flags().StringP("token", "t", "", "Personal Access Token (PAT) to use for enrollment")
cmd.Flags().StringP("owner", "o", "", "Owner to filter on for provider resources")
if err := cmd.MarkFlagRequired("provider"); err != nil {
_, _ = fmt.Fprintf(os.Stderr, "Error marking flag as required: %s\n", err)
}
}

0 comments on commit 761ddc0

Please sign in to comment.