add gitea changelog helper in arkanum

This commit is contained in:
OCram85 2022-11-19 18:16:29 +01:00
parent 66ce973182
commit 6b33435ec1
2 changed files with 12 additions and 2 deletions

12
arkanum
View File

@ -123,7 +123,15 @@ function instPwsh() {
# Install PowerShell
sudo apt-get install --no-install-recommends -y powershell
echo "done." "PowerShell"
say "done." "PowerShell"
}
function instGiteaTools() {
say "Installing Gitea tools..." "Gitea"
sudo curl -sSl https://dl.gitea.io/changelog-tool/main/changelog-main-linux-amd64 -o /usr/bin/changelog
sudo chmod +x /usr/bin/changelog
say "'changelog' command installed." "Gitea"
say "done." "Gitea"
}
function setCodeSettings() {
@ -163,6 +171,8 @@ function main() {
instNodeJs
elif [[ "$i" == "powershell" ]]; then
instPwsh
elif [[ "$i" == "gitea" ]]; then
instGiteaTools
elif [[ "$i" == "--disable-motd" ]]; then
disableMotd
exit 0

View File

@ -1,3 +1,3 @@
#!/bin/bash
complete -W "--disable-motd --reset-codesetting dotnet golang nodejs powershell -h" arkanum
complete -W "--disable-motd --reset-codesetting dotnet gitea golang nodejs powershell -h" arkanum