pydoit / doit

CLI task management & automation tool
http://pydoit.org
MIT License
1.84k stars 175 forks source link

Support for wildcards in `list` command #429

Open tillahoffmann opened 2 years ago

tillahoffmann commented 2 years ago

It would be great to support wildcards for the list command. E.g. consider the following dodo.py file.

def task_hello():
    return {"actions": [lambda: None]}

Running the task with a wildcard works as desired.

$ doit run "hel*" 
.  hello

But trying to list with a wildcard suggests that a task hello does not exist.

$ doit list "hel*"
ERROR: 'hel*' is not a task.

Having feature parity across the two commands would be useful. Thanks for continuing to maintain this build tool!

Fund with Polar