From 7affa2082f61455a413d0c8fea08e79935d4f308 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 1 Mar 2024 19:20:34 +0200 Subject: Spacing adjustment --- bin/ak-news | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'bin/ak-news') diff --git a/bin/ak-news b/bin/ak-news index b730821..9824788 100755 --- a/bin/ak-news +++ b/bin/ak-news @@ -25,7 +25,7 @@ cd $ZNEWSDIR _ak_modules_news_create(){ TEMP="$(ak-tempassin)" cd $TEMP - cd + cd curpath="$(pwd)" export NEWS_FILE="$(date +%Y%m%d_%H%M%S)" vi $NEWS_FILE @@ -38,7 +38,7 @@ _ak_modules_news_create(){ _ak_modules_news_add $TO_FILE echo "Adding to git repo..." cd $ZNEWSDIR - # rm -rf $TEMP + # rm -rf $TEMP } _ak_modules_news_index(){ FILES="$(ls -1 $ZNEWSDIR)" @@ -58,7 +58,7 @@ _ak_modules_news_index(){ printf "%3d | %5s | %52s | %10s | %56s \n"\ "$i" "$ONLINE" "$IPFS_HASH" "$DATE" "$TITLE" let i+=1 - done + done rm temp } _ak_modules_news_title(){ @@ -161,14 +161,13 @@ EOF fi } _ak_modules_news_usage(){ - echo "#TODO" - echo "All you need to know is that there are two options available:" - echo "help Prints this help message" - echo "local-index Prints an indexed table of your news files" - echo "import #TODO" - echo "add Creates a data file from the news file you point to" - echo "create Vim is going to pop up, you will write and save your" - echo " newsletter and it's going to be saved" + echo "-h, --help Prints this help message" + echo "local-index Prints an indexed table of your news files" + echo "import #TODO" + echo "add Creates a data file from the news file you point to" + echo "create Vim is going to pop up, you will write and save your" + echo " newsletter and it's going to be saved" + echo "specs Print specs of data block" exit 0 } _ak_modules_news_read(){ -- cgit v1.2.3