From 562a34e3194d4c5b08103556d37833d9139c3808 Mon Sep 17 00:00:00 2001 From: kamangir Date: Tue, 5 Nov 2024 18:05:35 -0800 Subject: [PATCH] release sleep + watch - kamangir/bolt#746 --- README.md | 2 +- abcli/.abcli/plugins/alias.sh | 4 ---- abcli/.abcli/plugins/sleep.sh | 9 --------- abcli/.abcli/plugins/watch.sh | 18 ------------------ abcli/.abcli/tests/help.sh | 4 ++-- abcli/__init__.py | 2 +- 6 files changed, 4 insertions(+), 35 deletions(-) delete mode 100644 abcli/.abcli/plugins/sleep.sh delete mode 100644 abcli/.abcli/plugins/watch.sh diff --git a/README.md b/README.md index 69950abb..83809aaf 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.148.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.402.1`](https://github.com/kamangir/awesome-bash-cli). +built by 🌀 [`blue_options-4.149.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.403.1`](https://github.com/kamangir/awesome-bash-cli). diff --git a/abcli/.abcli/plugins/alias.sh b/abcli/.abcli/plugins/alias.sh index 4632086f..e0fa1957 100644 --- a/abcli/.abcli/plugins/alias.sh +++ b/abcli/.abcli/plugins/alias.sh @@ -45,14 +45,10 @@ alias @random=abcli_string_random alias @seed=abcli_seed -alias @sleep=abcli_sleep - alias @ssm=abcli_ssm alias @storage=abcli_storage alias @version="abcli version" -alias @watch=abcli_watch - alias @wifi=abcli_wifi diff --git a/abcli/.abcli/plugins/sleep.sh b/abcli/.abcli/plugins/sleep.sh deleted file mode 100644 index 0e9ee81e..00000000 --- a/abcli/.abcli/plugins/sleep.sh +++ /dev/null @@ -1,9 +0,0 @@ -#! /usr/bin/env bash - -function abcli_sleep() { - local options=$1 - local seconds=$(abcli_option "$options" seconds 3) - - abcli_log_local "sleeping for $seconds s ... (^C to stop)" - sleep $seconds -} diff --git a/abcli/.abcli/plugins/watch.sh b/abcli/.abcli/plugins/watch.sh deleted file mode 100644 index ce0ae7bf..00000000 --- a/abcli/.abcli/plugins/watch.sh +++ /dev/null @@ -1,18 +0,0 @@ -#! /usr/bin/env bash - -function abcli_watch() { - local options=$1 - local do_clear=$(abcli_option_int "$options" clear 1) - - local command_line="${@:2}" - - abcli_log "watching $command_line ..." - - while true; do - [[ "$do_clear" == 1 ]] && clear - - abcli_eval ,$options "$command_line" - - abcli_sleep ,$options - done -} diff --git a/abcli/.abcli/tests/help.sh b/abcli/.abcli/tests/help.sh index 541bff05..e294e744 100644 --- a/abcli/.abcli/tests/help.sh +++ b/abcli/.abcli/tests/help.sh @@ -53,14 +53,14 @@ function test_abcli_help() { "@plugins list_of_installed" \ "@plugins transform" \ \ - "@sleep" \ + "abcli_sleep" \ \ "@terraform" \ "@terraform cat" \ "@terraform disable" \ "@terraform enable" \ \ - "@watch" \ + "abcli_watch" \ \ "abcli"; do abcli_eval ,$options \ diff --git a/abcli/__init__.py b/abcli/__init__.py index b1d7f312..5a57973c 100644 --- a/abcli/__init__.py +++ b/abcli/__init__.py @@ -6,7 +6,7 @@ DESCRIPTION = f"{ICON} a language to speak AI." -VERSION = "9.402.1" +VERSION = "9.403.1" REPO_NAME = "awesome-bash-cli"