Skip to content

Commit

Permalink
[updated] shell
Browse files Browse the repository at this point in the history
  • Loading branch information
alexchristianqr committed Feb 8, 2023
1 parent 2f2aff1 commit 102f11a
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions ghpages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,29 @@ PUSH_GHPAGES=''

# MOSTRAR MENSAJE DE ERROR DE ARGUMENTO TAG
error_arg_tag() {
echo "SOLUCION: Especifica un tag así: --tag=0.0.0 (obligatorio) NOTA: La estructura de un tag es [NivelMayor.NivelMenor.NivelBugfix]"
exit 1
}

# MOSTRAR MENSAJE DE ERROR DE ARGUMENTO DIRECTORY
error_arg_directory() {
echo "SOLUCION: Indica el directorio de compilación así: --dir=$VALUE_DIRECTORY // --directory=$VALUE_DIRECTORY (opcional)"
echo "[ OBLIGATORIO ]"
echo "-t=$VALUE_TAG, --tag=$VALUE_TAG ........................... Estructura de un tag [NivelMayor.NivelMenor.NivelBugfix]"
exit 1
}

# MOSTRAR MENSAJE DE ERROR GENERAL
error_args_general() {
echo "SOLUCION:"
echo "-t=, --tag= Tag [NivelMayor.NivelMenor.NivelBugfix]"
echo "-dt=, --deleted-lasttag= Eliminar último tag registrado"
echo "-b=, --branch= Rama git"
echo "--exec= Comando de compilación"
echo "-o=, --out-dir= Carpeta de compilación"
echo "--repository= Repositorio git"
echo "-gp=, --github-pages= Utilizar github pages"
echo "[ COMANDOS CLI ]"
echo "-t, --tag ........................... structura de un tag [NivelMayor.NivelMenor.NivelBugfix]"
echo "-dt, --deleted-lasttag .............. Eliminar último tag registrado"
echo "-b, --branch ........................ Rama git"
echo "--exec .............................. Comando de compilación"
echo "-o, --out-dir ....................... Carpeta de compilación"
echo "--repository ........................ Repositorio git"
echo "-gp, --github-pages ................. Utilizar github pages"
echo
echo "[ DOCUMENTACION ]"
echo "Repositorio github: https://github.com/alexchristianqr/sh-ghpages"
echo
echo "[ AUTOR ]"
echo "Usuario: Alex Christian"
echo "Email: [email protected]"
echo "Repositorio github: https://github.com/alexchristianqr"
exit 1
}

Expand Down

0 comments on commit 102f11a

Please sign in to comment.