aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_script_description
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-27 03:40:07 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-27 03:40:07 +0200
commit5c08911132823735801aa70a4e2a23bc3f1c859a (patch)
tree17dc9ca8c8c2958cc8323484b1e9df1bd1630569 /lib/_ak_script_description
parent5ad0e143e7f76c740defe6d983e4c54007a23b25 (diff)
downloadarching-kaos-tools-5c08911132823735801aa70a4e2a23bc3f1c859a.tar.gz
arching-kaos-tools-5c08911132823735801aa70a4e2a23bc3f1c859a.tar.bz2
arching-kaos-tools-5c08911132823735801aa70a4e2a23bc3f1c859a.zip
Moving stuff to lib
Diffstat (limited to 'lib/_ak_script_description')
-rwxr-xr-xlib/_ak_script_description16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/_ak_script_description b/lib/_ak_script_description
new file mode 100755
index 0000000..740b1c4
--- /dev/null
+++ b/lib/_ak_script_description
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+source $AK_LIBDIR/_ak_newline
+
+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
+}