From ca83384948392307f76345d46f2704425610b20b Mon Sep 17 00:00:00 2001 From: kamangir Date: Sat, 11 Jan 2025 16:23:56 -0800 Subject: [PATCH] =?UTF-8?q?start=20of=20ssm-refactors-2025-01-11-qWbXBE=20?= =?UTF-8?q?=F0=9F=AA=84=20-=20kamangir/bolt#746?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- abcli/.abcli/plugins/ssm/get.sh | 7 ++++++- abcli/__init__.py | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d2c15116..5f0068bd 100644 --- a/README.md +++ b/README.md @@ -63,4 +63,4 @@ create a copy of [`sample.env`](./abcli/sample.env) as `.env` and fill in the se [![pylint](https://github.com/kamangir/awesome-bash-cli/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/awesome-bash-cli/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/awesome-bash-cli/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/awesome-bash-cli/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/awesome-bash-cli/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/awesome-bash-cli/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/abcli.svg)](https://pypi.org/project/abcli/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/abcli)](https://pypistats.org/packages/abcli) -built by 🌀 [`blue_options-4.180.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.462.1`](https://github.com/kamangir/awesome-bash-cli). +built by 🌀 [`blue_options-4.183.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.463.1`](https://github.com/kamangir/awesome-bash-cli). diff --git a/abcli/.abcli/plugins/ssm/get.sh b/abcli/.abcli/plugins/ssm/get.sh index 776ace76..e1591975 100644 --- a/abcli/.abcli/plugins/ssm/get.sh +++ b/abcli/.abcli/plugins/ssm/get.sh @@ -22,10 +22,15 @@ function abcli_ssm_get() { --format shell); do secret_name=$(python3 -c "print('$line'.split('=',1)[0])") - abcli_log "🔑 $secret_name" secret_value=$(abcli_ssm get $secret_name) + if [[ -z "$secret_value" ]]; then + abcli_log "🔑 $secret_name (blank)" + else + abcli_log "🔑 $secret_name" + fi + export $secret_name=$secret_value ((count++)) diff --git a/abcli/__init__.py b/abcli/__init__.py index 9de8b38c..ca1cf18a 100644 --- a/abcli/__init__.py +++ b/abcli/__init__.py @@ -6,7 +6,7 @@ DESCRIPTION = f"{ICON} A language to speak AI." -VERSION = "9.462.1" +VERSION = "9.463.1" REPO_NAME = "awesome-bash-cli"