feat: init

This commit is contained in:
2026-02-13 22:02:30 +01:00
commit 8f9ff830fb
16711 changed files with 3307340 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import type nodeReadlinePromises from "node:readline/promises";
import type { Abortable } from "node:events";
import { Interface as _Interface } from "../interface.mjs";
export declare class Interface extends _Interface implements nodeReadlinePromises.Interface {
question(query: string): Promise<string>;
question(query: string, options: Abortable): Promise<string>;
}

View File

@@ -0,0 +1,6 @@
import { Interface as _Interface } from "../interface.mjs";
export class Interface extends _Interface {
question(query, options) {
return Promise.resolve("");
}
}

View File

@@ -0,0 +1,10 @@
import type nodeReadlinePromises from "node:readline/promises";
import type { Direction } from "node:readline";
export declare class Readline implements nodeReadlinePromises.Readline {
clearLine(dir: Direction);
clearScreenDown();
commit(): Promise<void>;
cursorTo(x: number, y?: number | undefined);
moveCursor(dx: number, dy: number);
rollback();
}

View File

@@ -0,0 +1,20 @@
export class Readline {
clearLine(dir) {
return this;
}
clearScreenDown() {
return this;
}
commit() {
return Promise.resolve();
}
cursorTo(x, y) {
return this;
}
moveCursor(dx, dy) {
return this;
}
rollback() {
return this;
}
}