diff --git a/make/drupal.mk b/make/drupal.mk index c79e951..5f81548 100644 --- a/make/drupal.mk +++ b/make/drupal.mk @@ -74,6 +74,11 @@ drush-uli: ## Get login link $(call step,Login to your site with:\n) $(call drush,uli$(if $(DRUPAL_UID), --uid=$(DRUPAL_UID),) $(DRUPAL_DESTINATION)) +PHONY += drush-uli-% +drush-uli-%: ## Get login link for provided uid + $(call step,Login to your site as user $* with:\n) + $(call drush,uli --uid=$*) + PHONY += drush-si ifeq ($(DRUPAL_CONF_EXISTS),yes) drush-si: DRUSH_SI := -y --existing-config diff --git a/tests/outputs/drush-uli-%.txt b/tests/outputs/drush-uli-%.txt new file mode 100644 index 0000000..121656f --- /dev/null +++ b/tests/outputs/drush-uli-%.txt @@ -0,0 +1,4 @@ +drush-uli-123 IS_DRUPAL=yes +--- +printf "\n⭐ \033[0;33mLogin to your site as user 123 with:\n\033[0m\n" +drush uli --uid=123