From 4e8f09fcf92eb8de4e39d512ce36b9ed87fbde87 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 1 Mar 2024 05:45:13 +0200 Subject: ak-node-info for cli --- bin/ak-cli | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/bin/ak-cli b/bin/ak-cli index f3de2f4..69b6a1c 100755 --- a/bin/ak-cli +++ b/bin/ak-cli @@ -59,6 +59,9 @@ help_all(){ help_follow new_line + help_node_info + new_line + printf ' modules Various modules' help_modules new_line @@ -92,6 +95,28 @@ help_all(){ help_uncatecorized } +help_node_info(){ + ak-node-info +} + +_node_info(){ + if [ ! -z "$1" ] + then + case "$1" in + ipfs) + ak-node-info ipfs + ;; + ipns) + ak-node-info ipns + ;; + *) + help_node_info + ;; + esac + else + help_node_info + fi +} help_config(){ cat /home/kaotisk/projects/arching-kaos-tools/txts/manuals/config_subcommands } @@ -425,6 +450,10 @@ else _config "$2" exit_program 0 "$1 command finished"; ;; + node) + _node_info "$2" + exit_program 0 "$1 command finished"; + ;; log) _log "$2" "$3" "$4" "$5" exit_program 0 "$1 command finished"; -- cgit v1.2.3