forked from vlang/vsl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6cb8e00
commit 9c10138
Showing
10 changed files
with
60 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
disable=SC1090 # Non-constant source | ||
disable=SC1091 # Not specified as input | ||
disable=SC2034 # Unused variables (they are used but in other scripts) | ||
disable=SC2154 # Referenced, but not assigned |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,37 @@ | ||
RED=`tput setaf 1` | ||
GREEN=`tput setaf 2` | ||
YELLOW=`tput setaf 3` | ||
RESET=`tput sgr0` | ||
#!/usr/bin/env sh | ||
|
||
RED=$(tput setaf 1) | ||
GREEN=$(tput setaf 2) | ||
YELLOW=$(tput setaf 3) | ||
RESET=$(tput sgr0) | ||
CHECK="✓" | ||
CROSS="✗" | ||
WARN="⚠" | ||
|
||
describe() { | ||
printf "$1" | ||
printf "%s" "$1" | ||
dots=${2:-3} | ||
for i in $(seq 1 ${dots}); do sleep 0.035; printf "."; done | ||
for i in $(seq 1 "${dots}"); do sleep 0.035; printf "."; done | ||
sleep 0.035 | ||
} | ||
|
||
log_warn() { | ||
message=${1:-"Warning"} | ||
log="${YELLOW}${WARN} ${message}${RESET}\n" | ||
printf " ${log}" | ||
[ -f "$3" ] && printf "$2 ${log}" >> $3 | ||
printf " %s" "${log}" | ||
[ -f "$3" ] && printf "%s %s" "$2" "${log}" >> "$3" | ||
} | ||
|
||
log_failed() { | ||
message=${1:-"Failed"} | ||
log="${RED}${CROSS} ${message}${RESET}\n" | ||
printf " ${log}" | ||
[ -f "$3" ] && printf "$2 ${log}" >> $3 | ||
printf " %s" "${log}" | ||
[ -f "$3" ] && printf "%s %s" "$2" "${log}" >> "$3" | ||
} | ||
|
||
log_success() { | ||
message=${1:-"Success"} | ||
log="${GREEN}${CHECK} ${message}${RESET}\n" | ||
printf " ${log}" | ||
[ -f "$3" ] && printf "$2 ${log}" >> $3 | ||
printf " %s" "${log}" | ||
[ -f "$3" ] && printf "%s %s" "$2" "${log}" >> "$3" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters