Add version command

This commit is contained in:
Medvidek77 2025-03-21 23:42:32 +01:00
parent 761fd94395
commit cf02ca95ff

View file

@ -2,6 +2,7 @@
. tidler.conf # Load ENVs from config file . tidler.conf # Load ENVs from config file
version="0.3.0"
if [ -n "$PROXY_URL" ]; then if [ -n "$PROXY_URL" ]; then
proxy_url="$PROXY_URL" proxy_url="$PROXY_URL"
@ -267,9 +268,6 @@ searchAlbum() {
} }
echo "Welcome to TiDLer!" && echo ""
if [ "$1" = "search" ]; then if [ "$1" = "search" ]; then
if [ "$#" -ge 2 ]; then if [ "$#" -ge 2 ]; then
shift shift
@ -292,6 +290,8 @@ elif [ "$1" = "album" ]; then
else else
searchAlbum searchAlbum
fi fi
elif [ "$1" == "version" ]; then
echo "TiDLer $version by Medvidek77"
elif [ "$1" = "help" ]; then elif [ "$1" = "help" ]; then
echo "<MODE>" echo "<MODE>"
@ -306,6 +306,8 @@ elif [ "$1" = "help" ]; then
echo "" echo ""
echo "album {album_name}-optional -> search and download any album" echo "album {album_name}-optional -> search and download any album"
echo "" echo ""
echo "version -> print TiDLer version"
echo ""
echo "help -> print this message and exit" echo "help -> print this message and exit"
else else
echo "### Choose function! (Enter number) ###" echo "### Choose function! (Enter number) ###"