mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-26 17:06:23 +02:00
first commit
This commit is contained in:
parent
476654af80
commit
6014437479
20 changed files with 2231 additions and 0 deletions
16
apps/cli/src/application/functions/get_date.ts
Normal file
16
apps/cli/src/application/functions/get_date.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { Node, NodeOutputT } from "../nodes/node.js";
|
||||
|
||||
export class GetDate implements Node {
|
||||
async* execute(): NodeOutputT {
|
||||
yield {
|
||||
type: "text-start",
|
||||
};
|
||||
yield {
|
||||
type: "text-delta",
|
||||
delta: 'The current date is ' + new Date().toISOString(),
|
||||
};
|
||||
yield {
|
||||
type: "text-end",
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue