Skip to content

getCommandOutputFilePath

getCommandOutputFilePath(config, source): string | null

Defined in: core/dist/utils/fileUtils.d.ts:99

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.

string | boolean

string

string | null