@oada/cli
Version:
CLI OADA client
17 lines (16 loc) • 761 B
TypeScript
import type { OADAClient } from '@oada/client';
import 'ts-node/register/transpile-only';
import type { IConfig } from './BaseCommand.js';
export declare const enum IOType {
File = 0,
Oada = 1,
Url = 2,
Stdin = 3,
Stdout = 4,
Tty = 5
}
export declare const importable: readonly [".ts", ".js"];
export declare function loadFile(inString: string): Promise<unknown>;
export declare function expandPath(conn: OADAClient, path: string): AsyncIterable<string>;
export declare function input<T>(conn: OADAClient, paths: string | string[], config: IConfig, handler: (source: AsyncIterable<T>) => AsyncGenerator<T>): Promise<void>;
export declare function output<T>(file: string, handler: () => AsyncIterable<T>, config: IConfig): Promise<void>;