go-task / task

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

Completion script only completes tasks from task file in current dir #1878

Open StefanBRas opened 1 month ago

StefanBRas commented 1 month ago

The completion script will not walk up the tree in the same way that task itself does. For example (in zsh, with completion script loaded)

task -i
task <tab>default # completes to default
mkdir tmp
cd tmp
task <tab> # no completion

I'm not an expert in completion scripts, but walking up the tree doesn't seem that expensive.