mirror of
https://github.com/tildeclub/wiki-cli.git
synced 2026-01-23 19:00:19 +00:00
Add help and mention the website at the bottom of "wiki --list"
This commit is contained in:
5
wiki
5
wiki
@@ -17,6 +17,9 @@ fi
|
|||||||
|
|
||||||
if [ "$1" == "--list" ]; then
|
if [ "$1" == "--list" ]; then
|
||||||
ls -1 $WIKI_PATH/*.txt | cut -f 7 -d "/" | cut -f 1 -d "."
|
ls -1 $WIKI_PATH/*.txt | cut -f 7 -d "/" | cut -f 1 -d "."
|
||||||
|
echo
|
||||||
|
echo "Type 'wiki <article> to read that article in your terminal"
|
||||||
|
echo "...or visit the wiki in your browser at: https://tilde.club/wiki/"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -52,4 +55,4 @@ if [ ! -f $path ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
less $path
|
less $path
|
||||||
|
|||||||
Reference in New Issue
Block a user