diff options
Diffstat (limited to 'bin/ak-fs')
| -rwxr-xr-x | bin/ak-fs | 24 |
1 files changed, 14 insertions, 10 deletions
@@ -24,20 +24,22 @@ ## ## -h, --help Prints this help message ## --add, --import <file> Adds/Imports a file to the AKFS system -## --get, --export <hash> <output file> Exports a file from the AKFS system -## --cat <hash> Concatenates from given hash +## --get, --export <roothash> <output file> Exports a file from the AKFS system +## --cat <roothash> Concatenates from given hash ## --list Lists names and roots available -## --net-cat-from-map Concatenates from map via the network -## --cfm <hash map> Concatenates from map -## --gfm <hash map> Get file from map +## --net-cat-from-map <maphash> Concatenates from map via the network +## --net-get-from-map <maphash> Downloads from map via the network +## --cfm <maphash> Concatenates from map +## --gfm <maphash> Get file from map ## fullprogrampath="$(realpath $0)" PROGRAM=$(basename $0) descriptionString="AKFS tools" -source $AK_LIBDIR/_ak_log -source $AK_LIBDIR/_ak_script -source $AK_LIBDIR/_ak_fs +source $AK_LIBDIR/_ak_lib_load +_ak_lib_load _ak_log +_ak_lib_load _ak_script +_ak_lib_load _ak_fs if [ ! -z $1 ] then @@ -53,8 +55,10 @@ then --list) _ak_fs_list; exit;; --cfm) _ak_fs_cat_from_map_hash $2; exit;; --gfm) _ak_fs_get_from_map_hash $2; exit;; - * ) _ak_usage;; + --rhd) _ak_fs_return_hash_dir $2; echo ;exit;; + --rhp) _ak_fs_return_hash_path $2; echo ; exit;; + * ) _ak_usage err;; esac else - _ak_usage + _ak_usage err fi |
