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

Add params for makefile

Đang mở
#183 26 bình luận 0 reaction 0 người được giao Xem trên GitHub
easy good first issue help wanted
Ngôn ngữ chính
Python
Star
309
Fork
87
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.