From 6b33435ec18d8b6947ed64ca621c37d85c5fb582 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Sat, 19 Nov 2022 18:16:29 +0100 Subject: [PATCH] add gitea changelog helper in arkanum --- arkanum | 12 +++++++++++- arkanum-completion | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/arkanum b/arkanum index 6530d10..ef6e050 100755 --- a/arkanum +++ b/arkanum @@ -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 diff --git a/arkanum-completion b/arkanum-completion index 88d4fef..fda9906 100644 --- a/arkanum-completion +++ b/arkanum-completion @@ -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