MCPcopy Create free account
hub / github.com/anchordotdev/cli / runFunc

Method runFunc

cmd.go:400–409  ·  view source on GitHub ↗
(fn func(cmd *cobra.Command, args []string) error)

Source from the content-addressed store, hash-verified

398}
399
400func (w *cmdWrapper) runFunc(fn func(cmd *cobra.Command, args []string) error) func(cmd *cobra.Command, args []string) error {
401 return func(cmd *cobra.Command, args []string) error {
402 if w.err != nil {
403 return w.err
404 }
405
406 w.err = fn(cmd, args)
407 return w.err
408 }
409}

Callers 1

wrapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected