diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-07-24 05:43:33 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-07-24 05:43:33 +0300 |
commit | a5fbf367e42b1d443b526acf515e5fdf71f28c91 (patch) | |
tree | 793516f849c93a82145e4387b724a028fb0e0ae4 /bin/ak-fs | |
parent | 6e65b89679d6c99a00c455187551864d25142bfc (diff) | |
download | arching-kaos-tools-a5fbf367e42b1d443b526acf515e5fdf71f28c91.tar.gz arching-kaos-tools-a5fbf367e42b1d443b526acf515e5fdf71f28c91.tar.bz2 arching-kaos-tools-a5fbf367e42b1d443b526acf515e5fdf71f28c91.zip |
ak-fs: new flag --list
Diffstat (limited to 'bin/ak-fs')
-rwxr-xr-x | bin/ak-fs | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -5,30 +5,29 @@ ## Usage: ## ## -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 +## --list Lists names and roots available ## fullprogrampath="$(realpath $0)" PROGRAM=$(basename $0) descriptionString="AKFS tools" -# At least these source $AK_LIBDIR/_ak_log source $AK_LIBDIR/_ak_script source $AK_LIBDIR/_ak_fs -# Flags to run -if [ ! -z $1 ]; then +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 +else + _ak_usage fi |