Skip to content

ConfigCommandIO

A VIEW of CliIo: the same output seam, plus the environment this command needs injected.

stderr(text): void

ParameterType
textstring

void

CliIo.stderr


stdout(text): void

ParameterType
textstring

void

CliIo.stdout

PropertyTypeDescription
defaults?Partial<TaskConfig>The calling tool’s own defaults, sitting between DEFAULT_CONFIG and the user file. waypost passes { allowExec: true } because that is what waypost actually runs with; detect-runners agrees with the library and omits it. Without this, list and get would report the LIBRARY’s default while the tool went on to use its own — and reporting the value in effect is the entire job of those two commands.
env?Record<string, string | undefined>Defaults to process.env. Supplies WAYPOST_CONFIG and XDG_CONFIG_HOME.
home?stringDefaults to os.homedir(). The base for the non-XDG user path.