Skip to content

Commit

Permalink
feat(prompts): more readable prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
arsamsarabi committed Oct 12, 2023
1 parent 5b64eba commit 9efa0b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions app/utilities.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,35 @@ 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'
}

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"
}

Expand Down
6 changes: 3 additions & 3 deletions scripts/utilities.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 9efa0b7

Please sign in to comment.