()
| 4 | import * as p from '@clack/prompts'; |
| 5 | |
| 6 | export async function listMemory() { |
| 7 | const availableMemories = await getAvailableMemories(); |
| 8 | if (availableMemories.length === 0) { |
| 9 | p.log.message('No memory available.'); |
| 10 | return; |
| 11 | } |
| 12 | p.intro( |
| 13 | heading({ |
| 14 | text: 'MEMORY', |
| 15 | sub: 'List of all available memory sets' |
| 16 | }) |
| 17 | ); |
| 18 | console.log(''); |
| 19 | availableMemories.forEach(item => { |
| 20 | console.log(`${icons.memory} ${item}`); |
| 21 | }); |
| 22 | |
| 23 | process.exit(0); |
| 24 | } |
no test coverage detected