From 116b4ad008e5dcf7b1cc678363c68b03641b904e Mon Sep 17 00:00:00 2001 From: John Morton Date: Tue, 24 Aug 2021 16:26:34 -0400 Subject: [PATCH 1/2] Create Makefile With this Makefile, executing the wp-cli commands is easier. Instead of typing `docker-compose run --rm wp user list`, you can just type `make wp user list`. --- Makefile | 1 + 1 file changed, 1 insertion(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/Makefile @@ -0,0 +1 @@ + From ce71f1d1478488caec40ce15b62549c37b6f5bf5 Mon Sep 17 00:00:00 2001 From: John Morton Date: Tue, 24 Aug 2021 16:30:35 -0400 Subject: [PATCH 2/2] Update Makefile with the wp command With this Makefile, executing the wp-cli commands is easier. Instead of typing `docker-compose run --rm wp user list`, you can just type `make wp user list`. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8b137891..2c66e9a3 100644 --- a/Makefile +++ b/Makefile @@ -1 +1,3 @@ - +wp: + docker-compose run --rm wp \ + $(filter-out $@,$(MAKECMDGOALS))