diff options
author | Jakob Stendahl <jakob.stendahl@outlook.com> | 2018-12-05 23:48:05 +0100 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2018-12-05 23:48:05 +0100 |
commit | 921de6d0023f09db986dbed1c25c4e27196d3fdb (patch) | |
tree | c660d8cb78d9ddcb02bc35b30519fad0d5a29867 /bin | |
parent | ff3ba1d6cc29402bd0938baa52e0cdf854a9a745 (diff) | |
download | Luxcena-Neo-921de6d0023f09db986dbed1c25c4e27196d3fdb.tar.gz Luxcena-Neo-921de6d0023f09db986dbed1c25c4e27196d3fdb.zip |
:lipstick: Add branch-change func
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/luxcena-neo-cli.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/bin/luxcena-neo-cli.sh b/bin/luxcena-neo-cli.sh index 59cf5b5..a3c46bf 100755 --- a/bin/luxcena-neo-cli.sh +++ b/bin/luxcena-neo-cli.sh @@ -49,7 +49,7 @@ while getopts ":a:" o; do done shift $((OPTIND-1)) -printf "\e[37mLuxcena-\e[31mn\e[32me\e[34mo\e[37m-cli. [args: \e[90m'$*']\n\n\e[0m" +printf "\e[37mLuxcena-\e[31mn\e[32me\e[34mo\e[37m-cli \e[90m[args: '$*']\n\n\e[0m" action=$1 if [ "$action" == "update" ]; then @@ -149,10 +149,16 @@ elif [ "$action" == "log" ]; then fi elif [ "$action" == "version" ] || [ "$action" == "v" ]; then - printf "Version: Unknown\n" + printf "╭─────────────────────╮\n" + printf "│ Version: Unknown │\n" + printf "│ branch : $(git branch | grep \* | cut -d ' ' -f2) │\n" + printf "╰─────────────────────╯\n\n" elif [ "$action" == "selectBranch" ]; then - printf "Current Branch \n" + printf "Current $(git branch | grep \* | cut -d ' ' -f2)Branch \n" + runuser -l 'lux-neo' -c "git -C ~/src checkout $2" + printf "\e[91mYou should now run \e[90m'sudo lux-neo update'\e[91m!\n" + else usage fi |