From 98af59585b378fddfb135a28ca499fa23df8d0ac Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 1 Jul 2024 05:05:26 +0300 Subject: moving towards 'ak zchain --crawl' over 'ak enter' --- ContainerFile | 3 ++- README | 17 ++++++++++------- lib/_ak_zchain | 9 +++++++-- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/ContainerFile b/ContainerFile index fd7d085..4d72ecc 100644 --- a/ContainerFile +++ b/ContainerFile @@ -1,6 +1,7 @@ FROM fedora:latest -RUN dnf update -y && dnf install which git screen pinentry make -y +RUN dnf update -y && dnf install which git screen pinentry make gcc -y RUN dnf install -y curl wget jq nodejs +RUN dnf install -y nano COPY . /root/arching-kaos-tools RUN bash -c 'cd /root/arching-kaos-tools && /root/arching-kaos-tools/install.sh' RUN git config --global user.email "kaos@kaos.kaos" diff --git a/README b/README index 6b4771a..77c0836 100644 --- a/README +++ b/README @@ -155,26 +155,29 @@ Add is nice, you can add an already existing file directly. `news` is the second module after `mixtape`. Both modules need refactoring but they work at a level that someone can be productive with these tools. -### Explore chains ( `ak-enter` ) +### Explore chains ( `ak-zchain --crawl` ) You can view your zchain as a JSON object using `enter`. There are some flags in order to either view other zchains or change the depth of view ( includes or ignores data object and action ). ``` console -$ ak enter -h -ak-enter - Crawl an arching kaos chain -====================================== -ak-enter [-N | --no-verify] [-l | --limit ] [zblock] -ak-enter [-N | --no-verify] [-l | --limit ] -n +$ ak zchain --crawl -h +ak zchain --crawl [-N | --no-verify] [-l | --limit ] [zblock] +ak zchain --crawl [-N | --no-verify] [-l | --limit ] -n Usage: + --help, -h Print this help and exit + --chain , -n Crawl specified chain + --no-verify, -N Don't verify signatures + Specify IPFS CID for entrance Note that combined flags don't work for now -Running with no flags crawls your chain based on AK_ZLATEST environment variable +Running with no flags crawls your chain based on AK_ZLATEST environment +variable ``` Podman (or Docker) diff --git a/lib/_ak_zchain b/lib/_ak_zchain index 5dbcf62..147f8d5 100755 --- a/lib/_ak_zchain +++ b/lib/_ak_zchain @@ -128,9 +128,13 @@ _ak_zchain_crawl(){ while [ "$#" ]; do case "$1" in -h | --help) - printf " + printf "Zchain crawler +============== + ak zchain --crawl [-N | --no-verify] [-l | --limit ] [zblock] + ak zchain --crawl [-N | --no-verify] [-l | --limit ] -n + Usage: --help, -h Print this help and exit @@ -143,7 +147,8 @@ Usage: Note that combined flags don't work for now Running with no flags crawls your chain based on AK_ZLATEST environment -variable" +variable +" exit 1 ;; -l | --limit) -- cgit v1.2.3