Skip to main content
Version: v0.0.4

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

readonly readFile: (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

readonly readStdin: () => Promise<Uint8Array<ArrayBufferLike>>

Read all of stdin's bytes.

Returns

Promise<Uint8Array<ArrayBufferLike>>