Supply `logger` or output array to function tasks

Author: httphypixelnetCreated Jul 25, 2026Updated Jul 25, 2026

Is your feature request related to a problem? Please describe.

Currently, running a function task doesn't collect output, so tasks' output are returned during the execution of the task, instead of at the end of the lint-staged execution like command tasks.

Describe the solution you'd like

I'd like a logger object or similar passed to task() calls so they can report output/errors at the end of execution.

Describe alternatives you've considered

I've considered putting console calls inside of my tasks, but their output is lost in the log of running tasks.

Confirmation

  • I have read this issue template before submitting an issue. If left unchecked, the issue might be ignored or closed without consideration.
  • I have written this issue in my own words. I did not just copy the output directly from an AI agent. I have made sure this issue reflects my own thinking, and take ownership of its contents.