From 9efa0b792a42fb3b49d23d4f65e99767fc5398a9 Mon Sep 17 00:00:00 2001 From: Arsam Sarabi Date: Thu, 12 Oct 2023 13:16:03 +0100 Subject: [PATCH] feat(prompts): more readable prompts --- app/utilities.sh | 10 +++++----- scripts/utilities.sh | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/utilities.sh b/app/utilities.sh index d35aff4..49005d2 100755 --- a/app/utilities.sh +++ b/app/utilities.sh @@ -4,20 +4,20 @@ GOT_MENU_FG_COLOUR=54 function ask { gum style \ --foreground 225 --align left --margin "0 2" \ - "$1" + "? > $1" } function tell { gum style \ --foreground 189 --align left --margin "0 2" \ - "$1" + "! > $1" } function welcome_message { clear gum style \ --background $GOT_MENU_BG_COLOUR --foreground $GOT_MENU_FG_COLOUR --bold \ - --align center --margin "1 2 0 2" --padding "1 1" \ + --align center --margin "1 2 0 2" --padding "1 2" \ 'got the Git assistant.' '' 'Arsam Sarabi - arsamsarabi@me.com' } @@ -25,14 +25,14 @@ function no_git_message { clear gum style \ --background 52 --foreground 225 \ - --bold --align center --margin "0 2" --padding "1 1" \ + --bold --align center --margin "0 2" --padding "1 2" \ '🚨 404 - Git not found. 🚨' '' 'Make sure you are in the root folder of a git repository and try again.' } function status_bar { gum style \ --background $GOT_MENU_BG_COLOUR --foreground $GOT_MENU_FG_COLOUR \ - --margin "1 2" --padding "1" --bold \ + --margin "1 2" --padding "1 2" --bold \ "$APP_STATUS | 🌱: $CURRENT_GIT_BRANCH" } diff --git a/scripts/utilities.sh b/scripts/utilities.sh index 5d8835e..6a0a1cd 100644 --- a/scripts/utilities.sh +++ b/scripts/utilities.sh @@ -8,13 +8,13 @@ function log { function ask { gum style \ --foreground 61 --align left --margin "0.75 2" \ - "$1" + "? > $1" } function tell { gum style \ --foreground 189 --align left --margin "0.75 2" \ - "$1" - log "$1" + "! > $1" + log "! > $1" }