(ctx context.Context, cfg *configfile.ConfigFile, rootCmd, subCommand *cobra.Command, invokedCommand string, flags map[string]string, cmdErrorMessage string)
| 49 | } |
| 50 | |
| 51 | func runHooks(ctx context.Context, cfg *configfile.ConfigFile, rootCmd, subCommand *cobra.Command, invokedCommand string, flags map[string]string, cmdErrorMessage string) { |
| 52 | nextSteps := invokeAndCollectHooks(ctx, cfg, rootCmd, subCommand, invokedCommand, flags, cmdErrorMessage) |
| 53 | hooks.PrintNextSteps(subCommand.ErrOrStderr(), nextSteps) |
| 54 | } |
| 55 | |
| 56 | func invokeAndCollectHooks(ctx context.Context, cfg *configfile.ConfigFile, rootCmd, subCmd *cobra.Command, subCmdStr string, flags map[string]string, cmdErrorMessage string) []string { |
| 57 | if ctx.Err() != nil { |
no test coverage detected
searching dependent graphs…