Skip to content

Commit

Permalink
Ah, idk
Browse files Browse the repository at this point in the history
Add about section, and i forgor what else I added
  • Loading branch information
kevadesu committed Jan 18, 2025
1 parent 795eb1f commit 9bdfc0c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Other: Input any path"
echo "Ok!"
;;
esac
sudo wget -O $INSTALL_PATH/gir https://github.com/Icycoide/Gir/releases/download/v0.2.2/main.sh || echo "FAIL | Either failed download or invalid path or sudo does not exist."
sudo wget -O $INSTALL_PATH/gir https://github.com/Icycoide/Gir/releases/download/v0.2.3/main.sh || echo "FAIL | Either failed download or invalid path or sudo does not exist."
sudo chmod +x $INSTALL_PATH/gir || echo "FAIL | Either insufficient permissions or file does not exist or sudo does not exist."
}

Expand Down
21 changes: 20 additions & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
function gir.main() {
clear
git remote -v
MENU_CHOICE=$(gum filter --header.foreground="#fab387" --unselected-prefix.foreground="#fab387" --selected-indicator.foreground="#fab387" --indicator.foreground="#fab387" --match.foreground="#fab387" --prompt="| " --indicator=">" --header="Current directory: $PWD" --placeholder="Option" "Time Machine" "Add addition to last commit" "Edit last commit's message" "Correct an edit to a different branch" "Diff with fancy flag" "Undo file" "Undo commit" "Read file" "Add files to commit" "Remove files from commit" "Commit" "Push changes" "Pull changes" "Stash changes" "(Destructive) Reset to remote state" "(Re)initialise repository" "Quit")
MENU_CHOICE=$(gum filter --header.foreground="#fab387" --unselected-prefix.foreground="#fab387" --selected-indicator.foreground="#fab387" --indicator.foreground="#fab387" --match.foreground="#fab387" --prompt="| " --indicator=">" --header="Current directory: $PWD" --placeholder="Option" "Time Machine" "Add addition to last commit" "Edit last commit's message" "Correct an edit to a different branch" "Diff with fancy flag" "Undo file" "Undo commit" "Read file" "Add files to commit" "Remove files from commit" "Commit" "Push changes" "Pull changes" "Stash changes" "(Destructive) Reset to remote state" "(Re)initialise repository" "About" "Quit")
case $MENU_CHOICE in
"Time Machine")
gir.timemachine
Expand Down Expand Up @@ -54,6 +54,9 @@ function gir.main() {
"(Destructive) Reset to remote state")
gum confirm "You are about to reset this repository to the remote state, which will delete all untracked files and overwrite everything with whatever is stored remotely. Are you sure?" --affirmative="Yes, reset!" --negative="No, I changed my mind." --prompt.foreground="#d20f39" --selected.background="#d20f39" && gir.reset || echo "Operation cancelled."
;;
"About")
gir.about
;;
"Quit")
exit
;;
Expand Down Expand Up @@ -111,4 +114,20 @@ function gir.reset() {
git clean -d --force
}

function gir.about() {
echo "
gir version $GIR_VERSION
$(gum --version)
$(git --version)
host system kernel: $(uname -sr)
learn more about this release at:
https://github.com/Icycoide/Gir/releases/tag/v$GIR_VERSION"
}

function gir.variables() {
GIR_VERSION=0.2.3
}

gir.variables
gir.main

0 comments on commit 9bdfc0c

Please # to comment.