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 @@ -534,34 +534,6 @@ _cmd_gw() {
534534 ./gradlew " ${@ } "
535535 )
536536}
537- _cmd_list () {
538- local closest_entity
539- local entity=" ${1} "
540-
541- if [[ -z " ${entity} " ]]; then
542- _print_step " Showing listable entities..."
543-
544- _listPrefixedFunctions _list_
545-
546- exit
547- fi
548-
549- if ! _verifyListableEntity " ${entity} " ; then
550- closest_entity=$( _listPrefixedFunctions _list_| _fzf --filter " ${entity} " | head -n 1)
551-
552- if _verifyListableEntity " ${closest_entity} " && _confirm " Entity \" ${entity} \" is unknown. Use closest entity \" ${closest_entity} \" instead?" ; then
553- entity=${closest_entity}
554- else
555- _print_error " Cannot list ${C_YELLOW}${entity}${C_NC} . Showing listable entities..."
556-
557- _listPrefixedFunctions _list_
558-
559- exit
560- fi
561- fi
562-
563- _list_" ${entity} "
564- }
565537_cmd_ports () {
566538 local serviceName=" ${1} "
567539
@@ -722,6 +694,34 @@ cmd_init() {
722694
723695 _print_success " Created new Liferay Environment Composer project at ${C_BLUE}${worktree_dir}${C_NC} "
724696}
697+ cmd_list () {
698+ local closest_entity
699+ local entity=" ${1} "
700+
701+ if [[ -z " ${entity} " ]]; then
702+ _print_step " Showing listable entities..."
703+
704+ _listPrefixedFunctions _list_
705+
706+ exit
707+ fi
708+
709+ if ! _verifyListableEntity " ${entity} " ; then
710+ closest_entity=$( _listPrefixedFunctions _list_| _fzf --filter " ${entity} " | head -n 1)
711+
712+ if _verifyListableEntity " ${closest_entity} " && _confirm " Entity \" ${entity} \" is unknown. Use closest entity \" ${closest_entity} \" instead?" ; then
713+ entity=${closest_entity}
714+ else
715+ _print_error " Cannot list ${C_YELLOW}${entity}${C_NC} . Showing listable entities..."
716+
717+ _listPrefixedFunctions _list_
718+
719+ exit
720+ fi
721+ fi
722+
723+ _list_" ${entity} "
724+ }
725725cmd_remove () {
726726 local worktrees
727727 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