MCPcopy
hub / github.com/Dimillian/CodexMonitor / exportMarkdownFile

Function exportMarkdownFile

src/services/tauri.ts:83–102  ·  view source on GitHub ↗
(
  content: string,
  defaultFileName = "plan.md",
)

Source from the content-addressed store, hash-verified

81}
82
83export 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
104export async function listWorkspaces(): Promise<WorkspaceInfo[]> {
105 try {

Callers 2

MessageRows.tsxFile · 0.90
tauri.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected