MCPcopy Index your code
hub / github.com/docker/cli / runHooks

Function runHooks

cli-plugins/manager/hooks.go:51–54  ·  view source on GitHub ↗
(ctx context.Context, cfg *configfile.ConfigFile, rootCmd, subCommand *cobra.Command, invokedCommand string, flags map[string]string, cmdErrorMessage string)

Source from the content-addressed store, hash-verified

49}
50
51func 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
56func 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 {

Callers 2

RunCLICommandHooksFunction · 0.85
RunPluginHooksFunction · 0.85

Calls 1

invokeAndCollectHooksFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…