Skip to content

Commit

Permalink
fix(print): ensure print-* is available to other scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dmccaffery committed Feb 4, 2021
1 parent 506775e commit 1aa8ad0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/sh/scripts/eval/set-colors
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ else
export FORMAT_CLEAR=$CLR_SUCCESS
fi

__am_prompt_print_notice()
{
printf "${1}%s${FORMAT_CLEAR}\n" "$@"
}

__am_prompt_print_success()
{
printf "${CLR_SUCCESS}%s${FORMAT_CLEAR}\n" "$@"
Expand All @@ -76,7 +71,6 @@ __am_prompt_print_fail()
printf "${CLR_FAIL}%s${FORMAT_CLEAR}\n" "$@"
}

alias print-notice='__am_prompt_print_notice'
alias print-success='__am_prompt_print_success'
alias print-warn='__am_prompt_print_warn'
alias print-fail='__am_prompt_print_fail'
3 changes: 3 additions & 0 deletions src/sh/scripts/print-fail
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /usr/bin/env sh

printf "${CLR_FAIL}%s${FORMAT_CLEAR}\n" "$@"
3 changes: 3 additions & 0 deletions src/sh/scripts/print-success
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /usr/bin/env sh

printf "${CLR_SUCCESS}%s${FORMAT_CLEAR}\n" "$@"
3 changes: 3 additions & 0 deletions src/sh/scripts/print-warn
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /usr/bin/env sh

printf "${CLR_WARN}%s${FORMAT_CLEAR}\n" "$@"

0 comments on commit 1aa8ad0

Please sign in to comment.