From 94c6cd43413f266f0db898cfb3fc7a9833509ef8 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 27 Feb 2024 02:14:19 +0200 Subject: Refactored function names --- bin/ak-mixtapes | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin/ak-mixtapes') 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 -- cgit v1.2.3