()
| 286 | } |
| 287 | |
| 288 | func 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|...> |
| 303 | func runControlCommand(ctx context.Context) error { |