Add Github-CLI app

pull/532/head
Botspot 3 years ago
parent bdfda82c83
commit 7ae1715485

@ -0,0 +1 @@
Added to pi-apps by Itai-Nelken

@ -0,0 +1,4 @@
gh is GitHub on the command line.
It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code.
to run (terminal only): gh

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

@ -0,0 +1,19 @@
#!/bin/bash
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
function error {
echo -e "\\e[91m$1\\e[39m"
exit 1
}
cd $HOME
#remove old deb (if exists)
rm -f gh_1.8.0_linux_armv6.deb
#download
wget https://github.com/cli/cli/releases/download/v1.8.0/gh_1.8.0_linux_armv6.deb || error 'Failed to download github-cli!'
#install
sudo apt -fy install ./gh_1.8.0_linux_armv6.deb || error "Failed to install gh!"
#clean up
rm -f gh_1.8.0_linux_armv6.deb

@ -0,0 +1,19 @@
#!/bin/bash
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
function error {
echo -e "\\e[91m$1\\e[39m"
exit 1
}
cd $HOME
#remove old deb (if exists)
rm -f gh_1.8.0_linux_arm64.deb
#download
wget https://github.com/cli/cli/releases/download/v1.8.0/gh_1.8.0_linux_arm64.deb || error 'Failed to download github-cli!'
#install
sudo apt -fy install ./gh_1.8.0_linux_arm64.deb || error "Failed to install gh!"
#clean up
rm -f gh_1.8.0_linux_arm64.deb

@ -0,0 +1,11 @@
#!/bin/bash
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
function error {
echo -e "\\e[91m$1\\e[39m"
exit 1
}
#uninstall
sudo apt -y purge gh || error "Failed to uninstall gh!"

@ -0,0 +1 @@
https://cli.github.com/
Loading…
Cancel
Save