aio-libs / aio-libs/create-aio-app
Add params for makefile
Abierto
easy
good first issue
help wanted
- Lenguaje dominante
- Python
- Estrellas
- 309
- Forks
- 87
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Will be great have approach to put some arguments for make test or commands some like this.
For that we need add some like that into `Makefile`.
```
# arguments
FIRST_ARG := $(firstword $(MAKECMDGOALS))
ARGS = $(filter-out $@,$(MAKEOVERRIDES) $(MAKECMDGOALS))
MAKEFILE_PATH := $(abspath $(firstword $(MAKEFILE_LIST)))
%:
@:
```
and after that add `${ARGS}` to our commands
```
test:
docker-compose run --rm app-test ${ARGS}
```
usage
```
make test -- my_param=some_param othe_param
```
u need:
- [ ] generate ARGS variable
- [ ] add this variable to all commands which need it
- [ ] describe that into documentation
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.