Skip to content

Commit 656e9b1

Browse files
committed
SERV-390: Added completion for new xdebug commands
1 parent f775576 commit 656e9b1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

completion/bash/itkdev-docker-compose-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ _idc_completions()
99
fi
1010

1111
# Keep the suggestions in a local variable
12-
local suggestions=($(compgen -W "url open drush template:install traefik:start traefik:stop traefik:open traefik:url mailhog:open mailhog:url sql:connect sql:port sql:open xdebug hosts:insert sync sync:db sync:files images:pull composer" -- "${COMP_WORDS[1]}"))
12+
local suggestions=($(compgen -W "url open drush template:install traefik:start traefik:stop traefik:open traefik:url mailhog:open mailhog:url sql:connect sql:port sql:open xdebug xdebug2 xdebug3 hosts:insert sync sync:db sync:files images:pull composer" -- "${COMP_WORDS[1]}"))
1313

1414
COMPREPLY=("${suggestions[@]}")
1515

completion/zsh/_itkdev-docker-compose

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ _itkdev-docker-compose() {
4343
'traefik\:url[URL for the reverse proxy web-interface]' \
4444
'mailhog\:url[URL for the mailhog web-interface.]' \
4545
'mailhog\:open[Open mailhog url in default browser.]' \
46-
'xdebug[Boot the containers with PHP xdebug support enabled.]' \
46+
'xdebug[Deprecated command use xdebug2 (PHP =< 7.2) or xdebug3 (PHP >= 7.3).]' \
47+
'xdebug2[Boot the containers with PHP xdebug support enabled (PHP =< 7.2).]' \
48+
'xdebug3[Boot the containers with PHP xdebug support enabled (PHP >= 7.3).]' \
4749
'hosts\:insert[Insert the docker site url into the hosts file.]' \
4850
'images\:pull[Update/pull all docker images.]' \
4951
'composer[Run composer command inside phpfpm container.]' \

0 commit comments

Comments
 (0)