aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-mixtapes
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-mixtapes')
-rwxr-xr-xbin/ak-mixtapes12
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