From 050ef46d782180dbd0c57f6fa238083efdecd362 Mon Sep 17 00:00:00 2001 From: kamangir Date: Mon, 8 Apr 2024 19:01:46 -0700 Subject: [PATCH] @eval refactor - kamangir/bolt#746 --- abcli/__init__.py | 2 +- bash/modules/abcli.sh | 2 ++ bash/plugins/alias.sh | 2 ++ bash/plugins/eval.sh | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/abcli/__init__.py b/abcli/__init__.py index e49d13f7..925890eb 100644 --- a/abcli/__init__.py +++ b/abcli/__init__.py @@ -2,7 +2,7 @@ NAME = "abcli" -VERSION = "7.2973.1" +VERSION = "7.2977.1" DESCRIPTION = "🚀 a language to speak AI." diff --git a/bash/modules/abcli.sh b/bash/modules/abcli.sh index d72ab1a5..4fb11e28 100644 --- a/bash/modules/abcli.sh +++ b/bash/modules/abcli.sh @@ -10,6 +10,8 @@ function abcli() { local function_name=abcli_$task if [[ $(type -t $function_name) == "function" ]]; then $function_name "${@:2}" + elif [[ "$task" == "version" ]]; then + echo $abcli_fullname else abcli_log_error "-abcli: $task: command not found." return 1 diff --git a/bash/plugins/alias.sh b/bash/plugins/alias.sh index f7d7c687..11de2fd4 100644 --- a/bash/plugins/alias.sh +++ b/bash/plugins/alias.sh @@ -78,4 +78,6 @@ alias @timestamp=abcli_string_timestamp alias @upload=abcli_upload +alias @version="abcli version" + alias @watch=abcli_watch diff --git a/bash/plugins/eval.sh b/bash/plugins/eval.sh index e5cd7a7c..db31001e 100644 --- a/bash/plugins/eval.sh +++ b/bash/plugins/eval.sh @@ -5,7 +5,7 @@ function abcli_eval() { if [ $(abcli_option_int "$options" help 0) == 1 ]; then local options="dryrun,~log,path=" - abcli_show_usage "abcli eval$ABCUL[$options]$ABCUL" \ + abcli_show_usage "@eval$ABCUL[$options]$ABCUL" \ "eval ." return fi