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-mixtapes | |
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-mixtapes')
-rwxr-xr-x | bin/ak-mixtapes | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/ak-mixtapes b/bin/ak-mixtapes index adbe52c..8ccabcf 100755 --- a/bin/ak-mixtapes +++ b/bin/ak-mixtapes @@ -2,12 +2,12 @@ # The following creates a mixtape data message # We can extend it by calling the ak-pack_z_block.sh mixtape/add data ## ORIGINAL LINE -usage(){ - title +_ak_modules_mixtapes_usage(){ + _ak_modules_mixtapes_title echo "$0 - artist title file" } -main(){ +_ak_modules_mixtapes_main(){ echo $MIXTAPE_FILE "by" $MIXTAPE_ARTIST "named as" $MIXTAPE_TITLE MIXTAPE_IPFS_HASH=$(ak-ipfs-add $MIXTAPE_FILE) @@ -29,7 +29,7 @@ EOF } -title(){ +_ak_modules_mixtapes_title(){ echo "AK mixtape block creator" echo "========================" } @@ -41,8 +41,8 @@ then MIXTAPE_ARTIST="$1" MIXTAPE_TITLE="$2" MIXTAPE_FILE="$PWD/$3" - main + _ak_modules_mixtapes_main cat $PWD/data | jq -M ak-pack_z_block mixtape/add $PWD/data -else usage +else _ak_modules_mixtapes_usage fi |