CLI: Update

This commit is contained in:
Christer Warén
2026-09-18 18:39:09 +03:00
parent 756059c2d9
commit 6be628de5a
+15 -15
View File
@@ -290,14 +290,10 @@ wxi-content(){
wxi-footer(){ wxi-footer(){
echo "" echo ""
echo "------------------------------"
wxi-repeat " " $((30/2-12/2))
echo -n "$wxiBold" echo -n "$wxiBold"
echo "Warén Group™" echo "Designed by"
echo -n "$wxiNormal" echo -n "$wxiNormal"
wxi-repeat " " $((30/2-17/2)) wxiLink "Warén Group™" "https://waren.io"
echo "https://waren.io"
echo "=============================="
} }
wxiRed=$(tput setaf 196) wxiRed=$(tput setaf 196)
@@ -312,8 +308,12 @@ wxiUnderline=$(tput smul)
wxiBold=$(tput bold) wxiBold=$(tput bold)
wxiNormal=$(tput sgr0) wxiNormal=$(tput sgr0)
wxiLink() {
printf '\e]8;;%s\e\\%s\e]8;;\e\\\n' "$2" "$1"
}
wxi-header(){ wxi-header(){
if [[ $2 == "h1" ]] if [[ $2 == "h1" || $2 == "" ]]
then then
#wxi-repeat " " $(($(tput cols)/2-${#1}/2)) #wxi-repeat " " $(($(tput cols)/2-${#1}/2))
echo -n "$wxiBold" echo -n "$wxiBold"
@@ -1031,18 +1031,18 @@ wxi-ssh-keys-sync(){
wxi-args "$@" wxi-args "$@"
wxi-config wxi-config
echo -n $wxiBold$wxiRed echo -n $wxiBold$wxiOrange
cat <<'EOF' cat <<'EOF'
(`\ .-') /` ('-. _ .-') ('-. .-') _ (`\ .-') /` ('-. _ .-') ('-. .-') _
`.( OO ),' ( OO ).-.( \( -O ) _( OO) ( OO ) ) `.( OO ),' ( OO ).-.( \( -O ) _( OO) ( OO ) )
,--./ .--. / . --. / ,------. (,------.,--./ ,--,' ,--./ .--. / . --. / ,------. (,------.,--./ ,--,'
| | | | \-. \ | /`. ' | .---'| \ | |\ | | | | \-. \ | /`. ' | .---'| \ | |\
| | | |,.-'-' | | | / | | | | | \| | ) | | | |,.-'-' | | | / | | | | | \| | )
| |.'.| |_)\| |_.' | | |_.' |(| '--. | . |/ | |.'.| |_)\| |_.' | | |_.' |(| '--. | . |/
| | | .-. | | . '.' | .--' | |\ | | | | .-. | | . '.' | .--' | |\ |
| ,'. | | | | | | |\ \ | `---.| | \ | | ,'. | | | | | | |\ \ | `---.| | \ |
'--' '--' `--' `--' `--' '--' `------'`--' `--' '--' '--' `--' `--' `--' '--' `------'`--' `--'
EOF EOF
echo -n $wxiNormal echo -n $wxiNormal