Source Update

This commit is contained in:
Christer Warén
2024-04-27 23:32:06 +03:00
parent 91ae087bd4
commit b2d3908d6f
11 changed files with 133 additions and 22 deletions

View File

@ -1,9 +1,13 @@
wx-help() {
echo -n ">>> Help <<<";
echo "
echo -n "$wxItalic"
echo " >> Help << "
echo -n "$wxNormal";
echo "------------------------------"
echo -n "
Usage: $0 COMMAND [OPTIONS]
Common Commands:
init Init
ssh SSH
config Config
sign Certificates

14
src/commands/init.sh Normal file
View File

@ -0,0 +1,14 @@
wx-init () {
wx-login
echo -n "$wxItalic"
echo " >> Init << "
echo -n "$wxNormal";
echo "------------------------------"
mkdir -p ~/.ssh &> /dev/null
apt-get install -y python3-pip python3-venv jq git curl &> /dev/null
python3 -m venv /opt/ansible &> /dev/null
/opt/ansible/bin/pip3 install ansible hvac netaddr jmespath pexpect &> /dev/null
}

View File

@ -1,3 +1,8 @@
wx-settings() {
echo -n ">>> Settings <<<";
wx-login
echo -n "$wxItalic"
echo " >> Settings << "
echo -n "$wxNormal";
echo "------------------------------"
}

View File

@ -1,3 +1,8 @@
wx-ssh() {
echo -n ">>> SSH <<<";
wx-login
echo -n "$wxItalic"
echo " >> SSH << "
echo -n "$wxNormal";
echo "------------------------------"
}

View File

@ -1,3 +1,6 @@
wx-ssh-config(){
echo -n ">>> SSH: Config <<<"
echo -n "$wxItalic"
echo " >> SSH : Config << "
echo -n "$wxNormal"
echo "------------------------------"
}

View File

@ -1,3 +1,6 @@
wx-ssh-sign(){
echo -n ">>> SSH: Certificates <<<"
echo -n "$wxItalic"
echo " >> SSH : Certificates << "
echo -n "$wxNormal"
echo "------------------------------"
}

View File

@ -1,3 +1,6 @@
wx-welcome() {
echo -n ">>> Welcome <<<"
echo -n "$wxItalic"
echo " >> Welcome << "
echo -n "$wxNormal"
echo "------------------------------"
}