go-task / task

A task runner / simpler Make alternative written in Go
https://taskfile.dev
MIT License
11.53k stars 616 forks source link

Add a `numCPU` function similar to `OS` and `ARCH` #1887

Closed andreynering closed 3 weeks ago

andreynering commented 4 weeks ago

Idea came from this Discord thread.

The function should return the result of runtime.NumCPU().

Remember to update this table on the documentation.

Amoghrd commented 4 weeks ago

Hey, I have opened the above PR for this issue. PTAL and let me know if any changes are required. TIA!