Added new functions in Update-pkg

Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
This commit is contained in:
Marcin Woźniak 2023-11-23 09:23:19 +01:00 committed by Marcin Woźniak
parent 0ea9b6870e
commit f8267a78a0
1 changed files with 18 additions and 1 deletions

View File

@ -184,6 +184,11 @@ function install_awscli() {
pip3 install awscli $PIPEXTPRE
}
function install_aws_adfs() {
# Install aws-adfs
pip3 install aws-adfs $PIPEXTPRE
}
function install_ytdlp() {
# Install yt-dlp
pip3 install yt-dlp $PIPEXTPRE
@ -244,12 +249,22 @@ function install_speedtest() {
function install_gh_cli() {
if [[ "$(uname)" == "Darwin" ]]; then
brew install github/gh/gh
brew install gh
elif [[ "$(uname -r)" =~ "gentoo" ]]; then
sudo emerge dev-util/github-cli
fi
}
function install_kubernetes() {
if [[ "$(uname)" == "Darwin" ]]; then
wget "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/arm64/kubectl" -O $HOME/.local/bin/kubectl
chmod +x $HOME/.local/bin/kubectl
elif [[ "$(uname -r)" =~ "gentoo" ]]; then
wget "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -O $HOME/.local/bin/kubectl
chmod +x $HOME/.local/bin/kubectl
fi
}
function main() {
command_start update_pip
command_start install_neovim_module_for_python
@ -273,8 +288,10 @@ function main() {
command_start install_ytdlp
command_start install_spotifydl
command_start install_awscli
command_start install_aws_adfs
command_start install_speedtest
command_start install_gh_cli
command_start install_kubernetes
command_start update
}