MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / inputOutputPath

Function inputOutputPath

packages/core/fumadb/src/cli/index.ts:52–68  ·  view source on GitHub ↗
(type: "sql" | "orm", suggestion: string)

Source from the content-addressed store, hash-verified

50 }
51
52 async function inputOutputPath(type: "sql" | "orm", suggestion: string) {
53 const result = await text({
54 message:
55 type === "sql"
56 ? "Where to output the SQL migration file?"
57 : "Where to output the generated schema? (it will override the destination)",
58 defaultValue: suggestion,
59 placeholder: suggestion,
60 });
61
62 if (isCancel(result)) {
63 cancel("Migration cancelled.");
64 process.exit(0);
65 }
66
67 return result;
68 }
69
70 return {
71 async main() {

Callers 1

mainFunction · 0.85

Calls 2

textFunction · 0.85
cancelFunction · 0.50

Tested by

no test coverage detected