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

Method Use

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

Source from the content-addressed store, hash-verified

16}
17
18func (f *rootCommandFactory) Use(fn func(cmd *cobra.Command)) {
19 f.options = append(f.options, fn)
20}
21
22func (f *rootCommandFactory) Build() *cobra.Command {
23 o := f.constructor()

Callers 3

initFunction · 0.80
RegisterCommandFunction · 0.80
initFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected