( content: string, defaultFileName = "plan.md", )
| 81 | } |
| 82 | |
| 83 | export async function exportMarkdownFile( |
| 84 | content: string, |
| 85 | defaultFileName = "plan.md", |
| 86 | ): Promise<string | null> { |
| 87 | const selection = await save({ |
| 88 | title: "Export plan as Markdown", |
| 89 | defaultPath: defaultFileName, |
| 90 | filters: [ |
| 91 | { |
| 92 | name: "Markdown", |
| 93 | extensions: ["md"], |
| 94 | }, |
| 95 | ], |
| 96 | }); |
| 97 | if (!selection) { |
| 98 | return null; |
| 99 | } |
| 100 | await invoke("write_text_file", { path: selection, content }); |
| 101 | return selection; |
| 102 | } |
| 103 | |
| 104 | export async function listWorkspaces(): Promise<WorkspaceInfo[]> { |
| 105 | try { |
no outgoing calls
no test coverage detected