aio-libs / aio-libs/create-aio-app

Add params for makefile

Abierto
#183 26 comentarios 0 reacciones 0 asignados Ver en GitHub
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

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.