#!/usr/bin/env bash ## ## Tools to add, get and cat files to/from the Arching Kaos File System ## ## Usage: ## ## -h, --help Prints this help message ## --add, --import Adds/Imports a file to the AKFS system ## --get, --export Exports a file from the AKFS system ## --cat Concatenates from given hash ## --list Lists names and roots available ## fullprogrampath="$(realpath $0)" PROGRAM=$(basename $0) descriptionString="AKFS tools" source $AK_LIBDIR/_ak_log source $AK_LIBDIR/_ak_script source $AK_LIBDIR/_ak_fs if [ ! -z $1 ] then case $1 in -h | --help) _ak_usage; exit;; --add|--import) _ak_fs_import $2; exit;; --get|--export) _ak_fs_export $2 $3; exit;; --cat) _ak_fs_cat $2; exit;; --list) _ak_fs_list; exit;; * ) _ak_usage;; esac else _ak_usage fi