()
| 55 | } |
| 56 | |
| 57 | function getSessionInfo(): string[] { |
| 58 | const lines: string[] = ["", chalk.white("Session:")]; |
| 59 | |
| 60 | try { |
| 61 | const currentSession = getCurrentSession(); |
| 62 | const sessionFilePath = getSessionFilePath(); |
| 63 | lines.push( |
| 64 | ` Title: ${chalk.green(currentSession.title)}`, |
| 65 | ` ID: ${chalk.gray(currentSession.sessionId)}`, |
| 66 | ` File: ${chalk.blue(sessionFilePath)}`, |
| 67 | ); |
| 68 | } catch { |
| 69 | lines.push(` ${chalk.red("Session not available")}`); |
| 70 | } |
| 71 | |
| 72 | return lines; |
| 73 | } |
| 74 | |
| 75 | function getUsageInfo(): string[] { |
| 76 | const lines: string[] = ["", chalk.white("Usage:")]; |
no test coverage detected