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

Function NewEnableCommand

pkg/hubops/enable.go:21–23  ·  view source on GitHub ↗
(item *cwhub.Item, force bool)

Source from the content-addressed store, hash-verified

19}
20
21func NewEnableCommand(item *cwhub.Item, force bool) *EnableCommand {
22 return &EnableCommand{Item: item, Force: force}
23}
24
25func (c *EnableCommand) Prepare(plan *ActionPlan) (bool, error) {
26 var dependencies cwhub.Dependencies

Callers 4

installMethod · 0.92
installMethod · 0.92
PrepareMethod · 0.85
PrepareMethod · 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…