diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-02-27 02:14:19 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-02-27 02:14:19 +0200 |
commit | 94c6cd43413f266f0db898cfb3fc7a9833509ef8 (patch) | |
tree | 087f6f40d2e151ceed41dd03933317f35a014dfe /bin/ak-folders | |
parent | f93ebfadb3e0d89e668784cd781ad33c62e01065 (diff) | |
download | arching-kaos-tools-94c6cd43413f266f0db898cfb3fc7a9833509ef8.tar.gz arching-kaos-tools-94c6cd43413f266f0db898cfb3fc7a9833509ef8.tar.bz2 arching-kaos-tools-94c6cd43413f266f0db898cfb3fc7a9833509ef8.zip |
Refactored function names
Diffstat (limited to 'bin/ak-folders')
-rwxr-xr-x | bin/ak-folders | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/ak-folders b/bin/ak-folders index 65ff69f..1049895 100755 --- a/bin/ak-folders +++ b/bin/ak-folders @@ -17,19 +17,19 @@ fi TEMPASSIN="$(ak-tempassin)" cd $TEMPASSIN -usage(){ - title +_ak_modules_folders_usage(){ + _ak_modules_folders_title echo "$PROGRAM - folder" } -add(){ +_ak_modules_folders_add(){ CRP="$(pwd)" FOLDERNAME="$1" - main $FOLDERNAME $CRP + _ak_modules_folders_main $FOLDERNAME $CRP cat data | jq -M } -main(){ +_ak_modules_folders_main(){ FOLDERNAME="$1" CRP="$2" echo "Adding $FOLDERNAME" @@ -68,7 +68,7 @@ main(){ fi } -title(){ +_ak_modules_folders_title(){ echo "$PROGRAM" echo "Folder block creator" } @@ -76,9 +76,9 @@ title(){ if [ ! -z $1 ]; then case $1 in - help) usage; exit;; - add) add $2; exit;; - *) usage; exit;; + help) _ak_modules_folders_usage; exit;; + add) _ak_modules_folders_add $2; exit;; + *) _ak_modules_folders_usage; exit;; esac -else usage +else _ak_modules_folders_usage fi |