(cmd *cobra.Command, args []string)
| 10 | ) |
| 11 | |
| 12 | func executeParentHooks(cmd *cobra.Command, args []string) error { |
| 13 | for cmd.HasParent() { |
| 14 | cmd = cmd.Parent() |
| 15 | if cmd.PersistentPreRunE != nil { |
| 16 | return cmd.PersistentPreRunE(cmd, args) |
| 17 | } |
| 18 | } |
| 19 | return nil |
| 20 | } |
| 21 | |
| 22 | func EnableRepoOverride(cmd *cobra.Command, f *Factory) { |
| 23 | cmd.PersistentFlags().StringP("repo", "R", "", "Select another repository using the `[HOST/]OWNER/REPO` format") |
no outgoing calls
no test coverage detected