Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login in with given uid command #13

Merged
merged 3 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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