From 29da09b48d5aea1e97d02f3deb195d8791f1d497 Mon Sep 17 00:00:00 2001 From: "Mauro Rosero P." Date: Thu, 20 Mar 2025 10:47:05 -0500 Subject: [PATCH] [DOCS] Actualizar README.md para indicar uso de source con forgejo_login.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 馃 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- README.md | 6 +++--- bin/forgejo_login.sh | 5 ++--- bin/rate_update.py | 4 ++-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 877f9ee..64df8e5 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ bin/update.sh |---------|-------------| | `bin/ghadmin_install.sh` | Instala GitHub CLI (gh) con soporte multiplataforma | | `bin/gladmin_install.sh` | Instala GitLab CLI (glab) con m煤ltiples m茅todos de instalaci贸n | -| `bin/forgejo_login.sh` | Inicia/cierra sesi贸n en Forgejo usando tokens encriptados con SOPS | +| `source bin/forgejo_login.sh` | Inicia/cierra sesi贸n en Forgejo usando tokens encriptados con SOPS | | `bin/cversion_token.sh` | Gestiona tokens de acceso para plataformas de control de versiones de forma segura | ### Seguridad y Acceso @@ -198,10 +198,10 @@ Este script proporciona una interfaz para gestionar tokens de acceso para difere ```bash # Iniciar sesi贸n en Forgejo usando el token encriptado -bin/forgejo_login.sh +source bin/forgejo_login.sh # Cerrar sesi贸n de Forgejo -bin/forgejo_login.sh --logout +source bin/forgejo_login.sh --logout ``` Este script facilita la autenticaci贸n con Forgejo/Codeberg CLI (berg): diff --git a/bin/forgejo_login.sh b/bin/forgejo_login.sh index bfe6d6e..073e77a 100755 --- a/bin/forgejo_login.sh +++ b/bin/forgejo_login.sh @@ -31,8 +31,6 @@ BIN_BASE="bin" BIN_LIBS="lib" BIN_MESG="msg" BIN_CFGS="config" -VERSION=$(cat "$BIN_HOME/$BIN_BASE/$BIN_CFGS/version") - # Leer DEVSPATH desde el archivo de configuraci贸n o usar "devs" por defecto if [ -f "$SCRIPT_DIR/$BIN_CFGS/devspath.dat" ]; then @@ -41,7 +39,8 @@ else DEVSPATH="devs" fi BIN_HOME="$HOME/$DEVSPATH" - +VERSION=$(cat "$BIN_HOME/$BIN_BASE/$BIN_CFGS/version") +BIN_PATH=$BIN_HOME/$BIN_BASE # CHECK SHELL LANGUAGE BIN_LANG=${LANG:0:2} diff --git a/bin/rate_update.py b/bin/rate_update.py index 9a4a63c..59f19f0 100755 --- a/bin/rate_update.py +++ b/bin/rate_update.py @@ -6,7 +6,7 @@ Descripci贸n: Actualiza las tarifas por hora de diferentes tipos de programadore Autor: Mauro Rosero P. Creaci贸n: 2025-03-12 Actualizaci贸n: 2025-03-12 -Versi贸n: 1.0 +Versi贸n: 1.2.0 Licencia: AGPL """ @@ -1101,4 +1101,4 @@ if __name__ == "__main__": except Exception as e: logger.error(f"Error durante la actualizaci贸n de tarifas: {e}") print(f"ERROR: {e}") - sys.exit(1) \ No newline at end of file + sys.exit(1)