aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-fs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-fs')
-rwxr-xr-xbin/ak-fs20
1 files changed, 12 insertions, 8 deletions
diff --git a/bin/ak-fs b/bin/ak-fs
index 800a9bb..1109539 100755
--- a/bin/ak-fs
+++ b/bin/ak-fs
@@ -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,6 +55,8 @@ then
--list) _ak_fs_list; exit;;
--cfm) _ak_fs_cat_from_map_hash $2; exit;;
--gfm) _ak_fs_get_from_map_hash $2; exit;;
+ --rhd) _ak_fs_return_hash_dir $2; echo ;exit;;
+ --rhp) _ak_fs_return_hash_path $2; echo ; exit;;
* ) _ak_usage;;
esac
else