MCPcopy
hub / github.com/bettercap/bettercap / Module

Method Module

session/session.go:176–183  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

174}
175
176func (s *Session) Module(name string) (err error, mod Module) {
177 for _, m := range s.Modules {
178 if m.Name() == name {
179 return nil, m
180 }
181 }
182 return fmt.Errorf("module %s not found", name), mod
183}
184
185func (s *Session) Close() {
186 if s.Options.PrintVersion {

Callers 2

moduleHelpMethod · 0.95
ConfigureMethod · 0.80

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected