diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-12-20 17:17:51 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-12-20 17:17:51 +0200 |
commit | f2840ea42b494b2375a28b40f8d1c853b4878e18 (patch) | |
tree | 86e1247dd61feac09d91c8904b6ed01326a32731 /bin/ak-fs | |
parent | 1a9633cc951dda88524505218811eaf611bb7205 (diff) | |
download | arching-kaos-tools-f2840ea42b494b2375a28b40f8d1c853b4878e18.tar.gz arching-kaos-tools-f2840ea42b494b2375a28b40f8d1c853b4878e18.tar.bz2 arching-kaos-tools-f2840ea42b494b2375a28b40f8d1c853b4878e18.zip |
Fixes and new flags, see ak-fs --help
Diffstat (limited to 'bin/ak-fs')
-rwxr-xr-x | bin/ak-fs | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -28,6 +28,8 @@ ## --cat <hash> 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 ## fullprogrampath="$(realpath $0)" PROGRAM=$(basename $0) @@ -42,13 +44,15 @@ then case $1 in -h | --help) _ak_usage; exit;; --add|--import) _ak_fs_import $2; exit;; - --get|--export) _ak_fs_export $2 $3; exit;; + --get|--export) shift; _ak_fs_export $1 $2; exit;; --cat) _ak_fs_cat $2; exit;; --net-cat) _ak_fs_net_cat $2; exit;; --net-get) _ak_fs_net_get $2; exit;; --net-cat-from-map) _ak_fs_net_cat_from_map_hash $2; exit;; --net-get-from-map) _ak_fs_net_get_from_map_hash $2; exit;; --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;; esac else |