Skip to content

Commit

Permalink
Merge pull request #21 from OrcaPracticas/develop
Browse files Browse the repository at this point in the history
[PULLREQUEST DEV => MASTER] 20190304 23:10
  • Loading branch information
konami12 authored Mar 5, 2019
2 parents 6c9db3a + cb2794f commit 376573f
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 0 deletions.
Binary file added testing/testing-cmd-label-access.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testing/testing-cmd-label-i.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testing/testing-cmd-label-l.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions tools/.wl
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# -------------------------------------------------------- #
# Utilidades para las uis.
#
# @package OrcaTools.
# @subPacage Tools.
# @category Shell
# @autor jorge.mendez.ortega@gmail.com
# -------------------------------------------------------- #

# -------------------------------------------------------- #
# Permite los comandos basicos para whitelabel.
#
# INFO
#
# -i : instala el componente de White Label.
# -l : Brinda un listado de los componentes de WhiteLAbel.
# nombre : Busca el componente y te posiciona en el.
#
# USO
#
# label [modificador] [nombre del widget]
#
# EJEMPLOS
#
# label telehit (levanta una ui)
# label -i widget-dummy instala el componente
# label -l listado de componentes
# label widget-dummy accede al compnente
# -------------------------------------------------------- #
label(){
option=$1
widget=$2
case $option in
-i)
if [ $widget ]
then
wl
clone televisa-digital/$widget
else
logs -e "Introdusca el nombre del componente de White label"
fi
;;
-l)
logs -i "Listado de componentes White label"
wl
td
logs -s "Fin del listado"
;;
*)
logs -i "Entrando al directorio de ${option}"
wl
if [ -d "${option}" ]
then
cd $option
logs -s "Acceso correcto"
else
logs -e "Directorio no existente ${option}"
fi
;;
esac
}

0 comments on commit 376573f

Please sign in to comment.