(blocks []string, info SessionRecord)
| 802 | } |
| 803 | |
| 804 | func appendSessionCapsBlock(blocks []string, info SessionRecord) []string { |
| 805 | if info.ACPCaps == nil { |
| 806 | return blocks |
| 807 | } |
| 808 | return append(blocks, renderHumanSection("Capabilities", []keyValue{ |
| 809 | {Label: "Supports Load", Value: strconv.FormatBool(info.ACPCaps.SupportsLoadSession)}, |
| 810 | {Label: "Modes", Value: stringOrDash(strings.Join(info.ACPCaps.SupportedModes, ", "))}, |
| 811 | })) |
| 812 | } |
| 813 | |
| 814 | func renderSessionToon(info SessionRecord) (string, error) { |
| 815 | return renderToonObject(sessionSessionKey, []string{ |
no test coverage detected