()
| 919 | } |
| 920 | |
| 921 | func sessionResumeEmptyBundle() outputBundle { |
| 922 | payload := struct { |
| 923 | Resumed *SessionRecord `json:"resumed"` |
| 924 | Reason string `json:"reason"` |
| 925 | }{ |
| 926 | Reason: "no_eligible_sessions", |
| 927 | } |
| 928 | return outputBundle{ |
| 929 | jsonValue: payload, |
| 930 | human: func() (string, error) { |
| 931 | return "No resumable sessions; start a new one with 'agh session new'.", nil |
| 932 | }, |
| 933 | toon: func() (string, error) { |
| 934 | return renderToonObject("resume", []string{"resumed", "reason"}, []string{"", payload.Reason}), nil |
| 935 | }, |
| 936 | } |
| 937 | } |
| 938 | |
| 939 | func sessionRecapBundle(record SessionRecapRecord) outputBundle { |
| 940 | return outputBundle{ |
no test coverage detected