[Feature] Support wildcard target
- Dominant language
- Rust
- Stars
- 35.8k
- Forks
- 846
- Avg merge
- 27m
- Merged PRs (30d)
- 3
Description
I recently came across this useful tool and since have been replacing Makefiles in many of my projects with Justfiles. However, there is one make feature that I cannot achieve using make:
In projects that use a containerized dev setup, my last Makefile entry used to be
```make
# pass all commands to compose cli
%:
docker-compose $@
```
This allowed to execute convenience functions like `make up`, `make down`, `make build`, `make ps` etc very quickly. When using just, I have to use the following code to achieve the same thing:
```just
# docker-compose
@compose *flags:
{{ compose }} {{ flags }}
# docker-compose up
@up *flags: _data
{{ compose }} up {{ flags }}
# docker-compose down
@down *flags:
{{ compose }} down {{ flags }}
# docker-compose build
@build *flags:
{{ compose }} build {{ flags }}
# docker-compose ps
@ps *flags:
{{ compose }} ps {{ flags }}
# docker-compose pull
@pull *flags:
{{ compose }} pull {{ flags }}
```
This way I can still use commands like `just up -d`, `just ps` but for commands not specified explicitly I will have to execute e.g. `just compose config`.
Would it be possible to create a default wildcard option in just to achieve something similar to what is possible using make?
Contributor guide
Assessment
This issue has not been assessed yet.