getCommandOutputFilePath
getCommandOutputFilePath(
config,source):string|null
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/fileUtils.ts:314
Returns the output file path for a given command execution based on configuration.
- If writeOutputToFile is false, returns null.
- If writeOutputToFile is a string, resolves it without generating a default filename.
- If writeOutputToFile is true, generates a standard filename from source and resolves it under .gsloth/ (when present) or project root.
Parameters
Section titled “Parameters”config
Section titled “config”writeOutputToFile
Section titled “writeOutputToFile”string | boolean
source
Section titled “source”string
Returns
Section titled “Returns”string | null