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

Method verboseDescription

pkg/hubops/plan.go:111–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109}
110
111func (p *ActionPlan) verboseDescription() string {
112 sb := strings.Builder{}
113
114 // Here we display the commands in the order they will be executed.
115 for _, cmd := range p.commands {
116 sb.WriteString(colorizeOpType(cmd.OperationType()) + " " + cmd.ItemType() + ":" + cmd.Detail() + "\n")
117 }
118
119 return sb.String()
120}
121
122// describe the operations of a given type in a compact way.
123func describe(opType string, desc map[string]map[string][]string, sb *strings.Builder) {

Callers 1

DescriptionMethod · 0.95

Calls 5

colorizeOpTypeFunction · 0.85
OperationTypeMethod · 0.65
ItemTypeMethod · 0.65
DetailMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected