aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-articles
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-01 19:26:24 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-01 19:26:24 +0200
commitf8d2236e55e5c369b218017d1de1058d6a8ee361 (patch)
tree1cdd4ea1476c3062d3dd38ee1ba62d6bb98eb680 /bin/ak-articles
parent7affa2082f61455a413d0c8fea08e79935d4f308 (diff)
downloadarching-kaos-tools-f8d2236e55e5c369b218017d1de1058d6a8ee361.tar.gz
arching-kaos-tools-f8d2236e55e5c369b218017d1de1058d6a8ee361.tar.bz2
arching-kaos-tools-f8d2236e55e5c369b218017d1de1058d6a8ee361.zip
Log formatting adjustment
Diffstat (limited to 'bin/ak-articles')
-rwxr-xr-xbin/ak-articles27
1 files changed, 24 insertions, 3 deletions
diff --git a/bin/ak-articles b/bin/ak-articles
index e6c45c4..9e7c7b4 100755
--- a/bin/ak-articles
+++ b/bin/ak-articles
@@ -1,7 +1,29 @@
#!/bin/bash
+
+PROGRAM=$(basename $0)
+descriptionString="Articles module for Arching Kaos"
+
+logit(){
+ ak-logthis "$PROGRAM" "$1" "$2"
+}
+new_line(){
+ printf '\n'
+}
+description(){
+ full_title="$(printf '%s - %s' "$PROGRAM" "$descriptionString")"
+ delimiter_count=`echo -n $full_title | wc -c`
+ printf '%s' "$full_title"
+ new_line
+ while [ $delimiter_count -gt 0 ]
+ do
+ printf '='
+ delimiter_count=$(($delimiter_count-1))
+ done
+ new_line
+}
+
ZARTICLESDIR="$AK_WORKDIR/articles"
TEMP="/tmp/aktmp"
-echo $ZARTICLESDIR
if [ ! -d $ZARTICLESDIR ]; then
mkdir $ZARTICLESDIR
cd $ZARTICLESDIR
@@ -47,8 +69,7 @@ _ak_modules_articles_index(){
done
}
_ak_modules_articles_title(){
- echo ak-articles-cli
- echo "--------------"
+ description
}
_ak_modules_articles_import(){
echo "#TODO"