MCPcopy
hub / github.com/slimtoolkit/slim / dumpAppBom

Function dumpAppBom

pkg/app/sensor/app.go:288–300  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286}
287
288func dumpAppBom() {
289 info := appbom.Get()
290 if info == nil {
291 return
292 }
293
294 var out bytes.Buffer
295 encoder := json.NewEncoder(&out)
296 encoder.SetEscapeHTML(false)
297 encoder.SetIndent(" ", " ")
298 _ = encoder.Encode(info)
299 fmt.Printf("%s\n", out.String())
300}
301
302// sensor control <stop-target-app|wait-for-event|change-log-level|...>
303func runControlCommand(ctx context.Context) error {

Callers 1

RunFunction · 0.85

Calls 2

GetFunction · 0.92
StringMethod · 0.45

Tested by

no test coverage detected