From 681358adcfc8d1471ca53c3af246bf80a885ef98 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 5 Jul 2024 00:32:55 +0300 Subject: Refactoring - Edited log messages and types - IPFS `cat` is now calling `get` which in turn searches for already gotten file, otherwise fetches it. - ak-data-expand is now a function of _ak_zblock lib (_ak_data_expand) - Removed ak-sm-hash-to-path as it lives in _ak_fs lib now - Removed _ak_title_description and _ak_help from ak in favor of _ak_usage - Tweaks around native FS over IPFS strategy Note that we are preparing the ground for migration to AKFS as well --- bin/ak-sm-hash-to-path | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100755 bin/ak-sm-hash-to-path (limited to 'bin/ak-sm-hash-to-path') diff --git a/bin/ak-sm-hash-to-path b/bin/ak-sm-hash-to-path deleted file mode 100755 index b114b1b..0000000 --- a/bin/ak-sm-hash-to-path +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -## -## With this tool you give a SHA512 and take the following: -## -## -h, --help This help message -## -## -d, --dir Directory that the hashed file would be -## hosted -## -## -p, --path Full path that the hashed file would be -## saved -## - -fullprogrampath="$(realpath $0)" -PROGRAM="$(basename $0)" -descriptionString="Simple driver for hashes/chunks/branches" -source $AK_LIBDIR/_ak_fs -source $AK_LIBDIR/_ak_script - -case "$1" in - -h | --help) - _ak_usage - exit 1 - ;; - -d | --dir) - _ak_fs_verify_input_is_hash $2 - _ak_fs_return_hash_dir $2 - exit 0 - ;; - -p | --path) - _ak_fs_verify_input_is_hash $2 - _ak_fs_return_hash_path $2 - exit 0 - ;; - *) - echo "no option?!" >&2 - exit 1 - ;; -esac - -exit 0 -- cgit v1.2.3