Skip to content

Commit

Permalink
Merge pull request #13 from druidfi/drush-uli-uid
Browse files Browse the repository at this point in the history
Login in with given uid command
  • Loading branch information
back-2-95 authored Nov 27, 2023
2 parents f7eaf3e + f183c68 commit 305fe1f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions make/drupal.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions tests/outputs/drush-uli-%.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 305fe1f

Please sign in to comment.