Few months ago, I wrote a bash script for an open-source project.
I created a small awk util that I used throughout the script to style the output. I found it very convenient. I wonder if something similar already exists.
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
I created a small awk util that I used throughout the script to style the output. I found it very convenient. I wonder if something similar already exists.
Some screenshots in the PR: https://github.com/ricomariani/CG-SQL-author/pull/18
Let me know guys if you like it. Any comments appreciated.
Go to source: https://github.com/ricomariani/CG-SQL-author/blob/main/playg...Example usage:
Go to source: https://github.com/ricomariani/CG-SQL-author/blob/main/playg... Go to source: https://github.com/ricomariani/CG-SQL-author/blob/main/playg...