MCPcopy
hub / github.com/cli/cli / find

Method find

internal/run/stub.go:89–97  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

87}
88
89func (cs *CommandStubber) find(args []string) *commandStub {
90 line := strings.Join(args, " ")
91 for _, s := range cs.stubs {
92 if !s.matched && s.pattern.MatchString(line) {
93 return s
94 }
95 }
96 return nil
97}
98
99type CommandCallback func([]string)
100

Callers 1

StubFunction · 0.95

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected