function theme() {
! $IS_TTY && cat || awk '
/^([[:space:]]*)SUCCESS:/ { sub("SUCCESS:", " \033[1;32m&"); print; printf "\033[0m"; next }
/^([[:space:]]*)ERROR:/ { sub("ERROR:", " \033[1;31m&"); print; printf "\033[0m"; next }
/^ / { print; next }
/^ / { print "\033[1m" $0 "\033[0m"; next }
/^./ { print "\033[4m" $0 "\033[0m"; next }
{ print }
END { printf "\033[0;0m" }'
}
Go to source: https://github.com/ricomariani/CG-SQL-author/blob/main/playg... exit_with_help_message() {
local exit_code=$1
cat <<EOF | theme
CQL Playground
Sub-commands:
help
Show this help message
hello
Onboarding checklist — Get ready to use the playground
build-cql-compiler
Rebuild the CQL compiler
Go to source: https://github.com/ricomariani/CG-SQL-author/blob/main/playg... cat <<EOF | theme
CQL Playground — Onboarding checklist
Required Dependencies
The CQL compiler
$($cql_compiler_ready && \
echo "SUCCESS: The CQL compiler is ready ($CQL)" || \
echo "ERROR: The CQL compiler was not found. Build it with: $CLI_NAME build-cql-compiler"
)
Go to source: https://github.com/ricomariani/CG-SQL-author/blob/main/playg...
Judges are socialists
https://www.grasset.fr/livre/le-coup-detat-des-juges-9782246...