wildcard selections - doit: No match

29 views
Skip to first unread message

QVN

unread,
Mar 17, 2022, 2:06:29 PM3/17/22
to python-doit

hi all,

Do you know why it caused the issue in yellow? 
I copied the same sample which generate sub tasks and support wildcard selections.
any help would be much appreciated.


name [dir_path] 354                   %doit create_file
.  create_file:file0.txt
.  create_file:file1.txt
.  create_file:file2.txt
name [dir_path] 355                   %doit create_file:file*
doit: No match.

name [dir_path] 356                   %pip show doit
Name: doit
Version: 0.34.2
Summary: doit - Automation Tool
Home-page: http://pydoit.org
Author: Eduardo Naufel Schettino
Author-email: schet...@gmail.com
License: MIT
Location: ...b/python3.8/site-packages/doit-0.34.2-py3.8.egg
Requires: cloudpickle, pyinotify
Required-by:
name [dir_path] 357   



Eduardo Schettino

unread,
Mar 17, 2022, 2:13:18 PM3/17/22
to python-doit
On Fri, Mar 18, 2022 at 2:06 AM QVN <nnquia...@gmail.com> wrote:

name [dir_path] 355                   %doit create_file:file*
doit: No match.


I guess the shell is trying to expand the "*".
Try "doit create_file:file*".

regards

Eduardo Schettino

unread,
Mar 17, 2022, 2:13:59 PM3/17/22
to python-doit

```
doit "create_file:file*"
```

QVN

unread,
Mar 17, 2022, 7:45:15 PM3/17/22
to python-doit
it works!
thx

QVN

unread,
Jul 20, 2022, 12:06:25 PM7/20/22
to python-doit
# without wildcard - it works just fine
$ doit create_file:file1 -opt +x

#  wildcard with params
$ doit create_file:file* --opt +x
ERROR: cmd `run` invalid parameter: "--opt".Must be a task, or a target.

is there any way to use both wildcard and param 
On Thursday, March 17, 2022 at 11:13:59 AM UTC-7 schettino72 wrote:

```
doit "create_file:file*"
```
Reply all
Reply to author
Forward
0 new messages