diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-07-24 17:41:46 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-07-24 17:41:46 +0300 |
commit | ec93522a295b9ee74f7fa8cbbd7752f2c1ef6ce6 (patch) | |
tree | f34add3e80e6f8078c76d5dcbac77cf14436a32e /bin | |
parent | 04ceeb9dd636cfea1373fc31574229c5664344bb (diff) | |
download | arching-kaos-tools-ec93522a295b9ee74f7fa8cbbd7752f2c1ef6ce6.tar.gz arching-kaos-tools-ec93522a295b9ee74f7fa8cbbd7752f2c1ef6ce6.tar.bz2 arching-kaos-tools-ec93522a295b9ee74f7fa8cbbd7752f2c1ef6ce6.zip |
ak-zblock: new flag --repack <zblock> <previous>
Plus:
- compacted help output text
- avoid calling library functions directly fix (unbreaks previous
commit)
- fix on call to _ak_zblock_pack where the arguments weren't passed to
the function
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ak-zblock | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/bin/ak-zblock b/bin/ak-zblock index d3d24ae..3a16ec4 100755 --- a/bin/ak-zblock +++ b/bin/ak-zblock @@ -4,18 +4,16 @@ ## from given information, which can be added on top of your zchain. ## ## Usage: -## -## -h, --help Prints this help message -## -## -s, --show Shows the zblock provided -## -## -x, --gen-html Generates an HTML document for a given zblock -## -## -c, --cache Caches a zblock -## -## -p, --pack Packs a zblock -## -## -a, --announce Announces a zblock +## -h, --help Prints this help message +## -s, --show [zblock] Shows the zblock provided. In case +## of no zblock, the latest of your +## zchain is shown. +## -x, --gen-html <zblock> Generates an HTML document for a +## given zblock +## -c, --cache Caches a zblock +## -p, --pack <module/action> <hash> Packs a zblock +## -r, --repack <zblock> <previous> Repacks a zblock at previous +## -a, --announce Announces a zblock ## fullprogrampath="$(realpath $0)" PROGRAM=$(basename $0) @@ -43,7 +41,11 @@ if [ ! -z $1 ]; then exit ;; -p | --pack) - _ak_zblock_pack $2 + _ak_zblock_pack $2 $3 + exit + ;; + -r | --repack) + _ak_zblock_repack $2 $3 exit ;; -a | --announce) |