From ba1173c9ec87b14a6ba6772d5ebfaafb81c7f888 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 9 Jun 2024 06:52:03 +0300 Subject: Refactoring --- modules/roadmap/main.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 modules/roadmap/main.sh (limited to 'modules/roadmap/main.sh') diff --git a/modules/roadmap/main.sh b/modules/roadmap/main.sh new file mode 100755 index 0000000..a30894a --- /dev/null +++ b/modules/roadmap/main.sh @@ -0,0 +1,35 @@ +#!/bin/bash +echo "$(basename $0) - Not implemented" +exit 1 + +title(){ + echo "AK Roadmap tool" +} + +usage(){ + title +} + +search(){ + cd $HOME/projects + PRJS="$(ls -1 .)" + for prj in $PRJS + do + if [ -f $prj/ROADMAP.md ]; + then + echo " - Roadmap found in $prj" + fi + done +} + +if [ ! -z $1 ]; +then + case $1 in + -h | --help) usage; exit;; + search) search; exit;; + *) usage; exit;; + esac +else + usage + exit 0 +fi -- cgit v1.2.3