Interface: RunDeps
The injectable input side-effects the dispatcher needs. Kept tiny and pure-ish so tests drive the CLI end to end with in-memory fakes and no real filesystem or stdin.
Properties
readFile
readonlyreadFile: (path) =>Promise<Uint8Array<ArrayBufferLike>>
Read a file's bytes, or raise a CLI_NO_INPUT CliError if it cannot be read.
Parameters
path
string
Returns
Promise<Uint8Array<ArrayBufferLike>>
readStdin
readonlyreadStdin: () =>Promise<Uint8Array<ArrayBufferLike>>
Read all of stdin's bytes.
Returns
Promise<Uint8Array<ArrayBufferLike>>