We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0e9418 commit 7705990Copy full SHA for 7705990
src/loom.ts
@@ -28,6 +28,10 @@ export function createLoom<
28
lines.push(config.template(ctx, item));
29
}
30
31
+ if (config.eof) {
32
+ lines.push("\n#EOF\n");
33
+ }
34
+
35
return lines.join("\n");
36
};
37
src/types.ts
@@ -58,6 +58,11 @@ export interface LoomConfig<
58
item: TInputSchema["_input"]
59
) => string;
60
61
+ /**
62
+ * Should there be an EOF marker at the end of the output?
63
+ */
64
+ eof?: boolean;
65
66
/**
67
* The predicate function. If provided, the loom will only process items that return true.
68
*/
0 commit comments