diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-04-05 14:23:22 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-04-05 14:23:22 +0300 |
commit | 0fd522a6e324de08a99bdd42ead193acff6f3d15 (patch) | |
tree | 7f25b03bb1ed8aaaf73689a59fee42196381ea2d /bin/ak-profile | |
parent | 946d002543083d9561bb1e7f851b8179099ad077 (diff) | |
download | arching-kaos-tools-0fd522a6e324de08a99bdd42ead193acff6f3d15.tar.gz arching-kaos-tools-0fd522a6e324de08a99bdd42ead193acff6f3d15.tar.bz2 arching-kaos-tools-0fd522a6e324de08a99bdd42ead193acff6f3d15.zip |
various fixes, surely still broken in places
Diffstat (limited to 'bin/ak-profile')
-rwxr-xr-x | bin/ak-profile | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/bin/ak-profile b/bin/ak-profile index 74491ef..d513c9a 100755 --- a/bin/ak-profile +++ b/bin/ak-profile @@ -5,22 +5,25 @@ ## ## Usage: ## -## -h, --help Prints this help message +## -h, --help Prints this help message ## -## index Show current status +## -i, --index Show current status ## -## show <data> Show profile entry from specified DATA IPFS CIDv0 +## --show <data IPFS CIDv0> Show profile entry from specified DATA +## IPFS CIDv0 ## -## set <property> <value> Sets a profile value +## -s, --set <property> <value> Sets a profile value ## -## get <property> Gets a profile value from the on-disk file. +## -g, --get <property> Gets a profile value from the on-disk +## file. ## ## Advanced (use with caution may produce duplicate entries): ## -## add <file> Creates a data file from the profile file you point -## to (file should already be in ZPROFILEDIR. +## -a, --add <file> Creates a data file from the profile file +## you point (file should already be in +## ZPROFILEDIR). ## -## import <folder> Import a folder to zchain #TODO +## -i, --import <folder> Import a folder to zchain #TODO ## fullprogrampath="$(realpath $0)" PROGRAM=$(basename $0) @@ -211,12 +214,12 @@ EOF if [ ! -z $1 ]; then case $1 in -h | --help) _ak_usage; exit;; - index) _ak_modules_profile_index; exit;; - show) _ak_modules_profile_show $2; exit;; - import) _ak_modules_profile_import $2; exit;; - add) _ak_modules_profile_add $2; exit;; - set) _ak_modules_profile_propset $2 "$3"; exit;; - get) _ak_modules_profile_propget $2; exit;; + -i | --index) _ak_modules_profile_index; exit;; + --show) _ak_modules_profile_show $2; exit;; + -i | --import) _ak_modules_profile_import $2; exit;; + -a | --add) _ak_modules_profile_add $2; exit;; + -s | --set) _ak_modules_profile_propset $2 "$3"; exit;; + -g | --get) _ak_modules_profile_propget $2; exit;; * ) _ak_usage;; esac else _ak_usage |