MCPcopy Create free account
hub / github.com/caddyserver/caddy / newRootCommandFactory

Function newRootCommandFactory

cmd/commandfactory.go:12–16  ·  view source on GitHub ↗
(fn func() *cobra.Command)

Source from the content-addressed store, hash-verified

10}
11
12func newRootCommandFactory(fn func() *cobra.Command) *rootCommandFactory {
13 return &rootCommandFactory{
14 constructor: fn,
15 }
16}
17
18func (f *rootCommandFactory) Use(fn func(cmd *cobra.Command)) {
19 f.options = append(f.options, fn)

Callers 1

cobra.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…