(record SessionRepairRecord)
| 990 | } |
| 991 | |
| 992 | func sessionRepairBundle(record SessionRepairRecord) outputBundle { |
| 993 | return outputBundle{ |
| 994 | jsonValue: record, |
| 995 | human: func() (string, error) { |
| 996 | return renderHumanSection("Session Repair", []keyValue{ |
| 997 | {Label: sessionSessionValue, Value: stringOrDash(record.SessionID)}, |
| 998 | {Label: "Persisted", Value: strconv.FormatBool(record.Persisted)}, |
| 999 | {Label: "Issues", Value: stringOrDash(sessionRepairIssueSummary(record.Issues))}, |
| 1000 | {Label: "Actions", Value: stringOrDash(sessionRepairActionSummary(record.Actions))}, |
| 1001 | }), nil |
| 1002 | }, |
| 1003 | toon: func() (string, error) { |
| 1004 | return renderToonObject("repair", []string{ |
| 1005 | sessionSessionIDKey, |
| 1006 | "persisted", |
| 1007 | "issues", |
| 1008 | "actions", |
| 1009 | }, []string{ |
| 1010 | record.SessionID, |
| 1011 | strconv.FormatBool(record.Persisted), |
| 1012 | sessionRepairIssueSummary(record.Issues), |
| 1013 | sessionRepairActionSummary(record.Actions), |
| 1014 | }), nil |
| 1015 | }, |
| 1016 | } |
| 1017 | } |
| 1018 | |
| 1019 | func sessionApprovalBundle(sessionID string, record SessionApprovalRecord) outputBundle { |
| 1020 | payload := struct { |
no test coverage detected