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

Function NewDisableCommand

pkg/hubops/disable.go:50–52  ·  view source on GitHub ↗
(item *cwhub.Item, force bool)

Source from the content-addressed store, hash-verified

48}
49
50func NewDisableCommand(item *cwhub.Item, force bool) *DisableCommand {
51 return &DisableCommand{Item: item, Force: force}
52}
53
54func (c *DisableCommand) Prepare(plan *ActionPlan) (bool, error) {
55 i := c.Item

Callers 3

removePlanMethod · 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…