diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-07-18 04:45:12 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-07-18 04:45:12 +0300 |
commit | 3ab1195a2fd01816287879fa78297b2904462584 (patch) | |
tree | 328a855e40a9b60d5fef657800a8ce094e50f8c1 /modules/follow/main.sh | |
parent | f4263aeee0f5b02dbcc541509b49e67bc7b6f8b7 (diff) | |
download | arching-kaos-tools-3ab1195a2fd01816287879fa78297b2904462584.tar.gz arching-kaos-tools-3ab1195a2fd01816287879fa78297b2904462584.tar.bz2 arching-kaos-tools-3ab1195a2fd01816287879fa78297b2904462584.zip |
ak-follow is now a module (ak -m follow)
Diffstat (limited to 'modules/follow/main.sh')
-rwxr-xr-x | modules/follow/main.sh | 33 |
1 files changed, 33 insertions, 0 deletions
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 |