(sessions: Session.Info[])
| 135 | } |
| 136 | |
| 137 | function formatSessionJSON(sessions: Session.Info[]): string { |
| 138 | const jsonData = sessions.map((session) => ({ |
| 139 | id: session.id, |
| 140 | title: session.title, |
| 141 | updated: session.time.updated, |
| 142 | created: session.time.created, |
| 143 | projectId: session.projectID, |
| 144 | directory: session.directory, |
| 145 | })) |
| 146 | return JSON.stringify(jsonData, null, 2) |
| 147 | } |