(item BundleNetworkSettingsRecord)
| 459 | } |
| 460 | |
| 461 | func bundleNetworkSettingsBundle(item BundleNetworkSettingsRecord) outputBundle { |
| 462 | return outputBundle{ |
| 463 | jsonValue: item, |
| 464 | human: func() (string, error) { |
| 465 | return renderHumanBlocks( |
| 466 | renderHumanSection("Bundle Network Settings", []keyValue{ |
| 467 | { |
| 468 | Label: "Configured Default", |
| 469 | Value: stringOrDash(item.ConfiguredDefaultChannel), |
| 470 | }, |
| 471 | {Label: "Effective Default", Value: stringOrDash(item.EffectiveDefaultChannel)}, |
| 472 | {Label: "Effective Source", Value: stringOrDash(item.EffectiveDefaultSource)}, |
| 473 | }), |
| 474 | renderHumanTable( |
| 475 | "Declared Channels", |
| 476 | []string{ |
| 477 | "Activation", |
| 478 | bridgeExtensionValue, |
| 479 | bundleBundleValue, |
| 480 | bundleProfileValue, |
| 481 | authoredContextWorkspaceValue, |
| 482 | bundleNameValue, |
| 483 | "Primary", |
| 484 | }, |
| 485 | bundleDeclaredChannelRows(item.DeclaredChannels), |
| 486 | ), |
| 487 | ), nil |
| 488 | }, |
| 489 | toon: func() (string, error) { |
| 490 | return renderHumanBlocks( |
| 491 | renderToonObject( |
| 492 | "bundle_network", |
| 493 | []string{"configured_default", "effective_default", "effective_source"}, |
| 494 | []string{ |
| 495 | item.ConfiguredDefaultChannel, |
| 496 | item.EffectiveDefaultChannel, |
| 497 | item.EffectiveDefaultSource, |
| 498 | }, |
| 499 | ), |
| 500 | renderToonArray( |
| 501 | "declared_channels", |
| 502 | []string{ |
| 503 | "activation", |
| 504 | bundleExtensionKey, |
| 505 | bundleBundleKey, |
| 506 | bundleProfileKey, |
| 507 | workspaceSkillSource, |
| 508 | automationNameKey, |
| 509 | "primary", |
| 510 | }, |
| 511 | bundleDeclaredChannelRows(item.DeclaredChannels), |
| 512 | ), |
| 513 | ), nil |
| 514 | }, |
| 515 | } |
| 516 | } |
| 517 | |
| 518 | func bundleProfileNames(item BundleCatalogRecord) []string { |
no test coverage detected