From 3ab1195a2fd01816287879fa78297b2904462584 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Thu, 18 Jul 2024 04:45:12 +0300 Subject: ak-follow is now a module (ak -m follow) --- modules/follow/main.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 modules/follow/main.sh (limited to 'modules/follow/main.sh') diff --git a/modules/follow/main.sh b/modules/follow/main.sh new file mode 100755 index 0000000..75be507 --- /dev/null +++ b/modules/follow/main.sh @@ -0,0 +1,33 @@ +#!/bin/bash +## +## You can maintain a list of friendly zchains or ids +## +## Usage: +## +## -h, --help Prints this help message +## +## -f, --follow Adds a ... to your follow list +## +## -l, --list Shows a list of your followings +## +## -u, --unfollow Unfollows a ... +## +fullprogrampath="$(realpath $0)" +PROGRAM="$(realpath $0 | rev |cut -d '/' -f 2 | rev)" +descriptionString="Following stuff" + +source $AK_LIBDIR/_ak_log +source $AK_LIBDIR/_ak_script +source $AK_MODULESDIR/$PROGRAM/lib.sh + +if [ ! -z $1 ] +then + case $1 in + -h | --help) _ak_usage; exit;; + -f | --follow) _ak_follow_follow $2; exit;; + -l | --list) _ak_follow_list $2; exit;; + -u | --unfollow) _ak_follow_unfollow $2; exit;; + * ) _ak_usage;; + esac +else _ak_usage +fi -- cgit v1.2.3