File tree Expand file tree Collapse file tree 1 file changed +28
-28
lines changed
Expand file tree Collapse file tree 1 file changed +28
-28
lines changed Original file line number Diff line number Diff line change @@ -605,34 +605,6 @@ _cmd_gw() {
605605 ./gradlew " ${@ } "
606606 )
607607}
608- _cmd_list () {
609- local closest_entity
610- local entity=" ${1} "
611-
612- if [[ -z " ${entity} " ]]; then
613- _print_step " Showing listable entities..."
614-
615- _listPrefixedFunctions _list_
616-
617- exit
618- fi
619-
620- if ! _verifyListableEntity " ${entity} " ; then
621- closest_entity=$( _listPrefixedFunctions _list_| _fzf --filter " ${entity} " | head -n 1)
622-
623- if _verifyListableEntity " ${closest_entity} " && _confirm " Entity \" ${entity} \" is unknown. Use closest entity \" ${closest_entity} \" instead?" ; then
624- entity=${closest_entity}
625- else
626- _print_error " Cannot list ${C_YELLOW}${entity}${C_NC} . Showing listable entities..."
627-
628- _listPrefixedFunctions _list_
629-
630- exit
631- fi
632- fi
633-
634- _list_" ${entity} "
635- }
636608_cmd_ports () {
637609 _checkProjectDirectory
638610
@@ -795,6 +767,34 @@ cmd_init() {
795767
796768 _print_success " Created new Liferay Environment Composer project at ${C_BLUE}${worktree_dir}${C_NC} "
797769}
770+ cmd_list () {
771+ local closest_entity
772+ local entity=" ${1} "
773+
774+ if [[ -z " ${entity} " ]]; then
775+ _print_step " Showing listable entities..."
776+
777+ _listPrefixedFunctions _list_
778+
779+ exit
780+ fi
781+
782+ if ! _verifyListableEntity " ${entity} " ; then
783+ closest_entity=$( _listPrefixedFunctions _list_| _fzf --filter " ${entity} " | head -n 1)
784+
785+ if _verifyListableEntity " ${closest_entity} " && _confirm " Entity \" ${entity} \" is unknown. Use closest entity \" ${closest_entity} \" instead?" ; then
786+ entity=${closest_entity}
787+ else
788+ _print_error " Cannot list ${C_YELLOW}${entity}${C_NC} . Showing listable entities..."
789+
790+ _listPrefixedFunctions _list_
791+
792+ exit
793+ fi
794+ fi
795+
796+ _list_" ${entity} "
797+ }
798798cmd_remove () {
799799 local worktrees
800800 worktrees=" $( _listWorktrees | grep -E -v " ^${LIFERAY_ENVIRONMENT_COMPOSER_HOME} $" | _selectMultiple " Choose projects to remove (Tab to select multiple)" ) "
You can’t perform that action at this time.
0 commit comments