diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-09 06:52:03 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-09 06:52:03 +0300 |
commit | ba1173c9ec87b14a6ba6772d5ebfaafb81c7f888 (patch) | |
tree | 38c4c4972844d8616f220aa65e00b265ff7945ec /modules/roadmap/main.sh | |
parent | 1a572d674b2c94bbe5b094f563c4875c77575227 (diff) | |
download | arching-kaos-tools-ba1173c9ec87b14a6ba6772d5ebfaafb81c7f888.tar.gz arching-kaos-tools-ba1173c9ec87b14a6ba6772d5ebfaafb81c7f888.tar.bz2 arching-kaos-tools-ba1173c9ec87b14a6ba6772d5ebfaafb81c7f888.zip |
Refactoring
Diffstat (limited to 'modules/roadmap/main.sh')
-rwxr-xr-x | modules/roadmap/main.sh | 35 |
1 files changed, 35 insertions, 0 deletions
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 |