MCPcopy
hub / github.com/crowdsecurity/crowdsec / New

Function New

cmd/crowdsec-cli/clilapi/lapi.go:16–20  ·  view source on GitHub ↗
(cfg csconfig.Getter)

Source from the content-addressed store, hash-verified

14}
15
16func New(cfg csconfig.Getter) *cliLapi {
17 return &cliLapi{
18 cfg: cfg,
19 }
20}
21
22func (cli *cliLapi) NewCommand() *cobra.Command {
23 cmd := &cobra.Command{

Callers 2

NewCommandMethod · 0.92
dumpLAPIStatusMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected