MCPcopy
hub / github.com/basecamp/once / run

Method run

internal/command/background_run.go:30–37  ·  view source on GitHub ↗

Private

(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

28// Private
29
30func (b *backgroundRunCommand) run(cmd *cobra.Command, args []string) error {
31 ctx, stop := signal.NotifyContext(cmd.Context(), syscall.SIGTERM, syscall.SIGINT)
32 defer stop()
33
34 runner := background.NewRunner(namespaceFlag(cmd))
35
36 return runner.Run(ctx)
37}

Callers

nothing calls this directly

Calls 3

RunMethod · 0.95
NewRunnerFunction · 0.92
namespaceFlagFunction · 0.85

Tested by

no test coverage detected