bash-commons
A collection of reusable Bash functions for handling common tasks such as logging, assertions, string manipulation, and more (by gruntwork-io)
mo
Mustache templates in pure bash (by tests-always-included)
bash-commons | mo | |
---|---|---|
3 | 3 | |
729 | 541 | |
1.4% | 0.7% | |
2.1 | 4.8 | |
5 days ago | about 2 months ago | |
Shell | Shell | |
Apache License 2.0 | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bash-commons
Posts with mentions or reviews of bash-commons.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-27.
- Bashkit V1
- BashLib a helpful source file for any script
-
How to structure library?
I think I phrased what I said poorly and unintentially communicated that I want to have all my code in one file. that' the opposite of what I'm wanting. To clarify, and I know this is splitting hairs but it illustrates my point. I think this log shell file is a good example of what I want to NOT do with my library. instead of having one file with 5 functions, I think it should be 5 files with no functions. that's to say the new file "log_info" would contain this text:
mo
Posts with mentions or reviews of mo.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-27.
- Bashkit V1
- BashLib a helpful source file for any script
-
How to use Scala Twirl template engine standalone, without Play Framework
I recently had to generate multiple configuration files for Apache httpd server. My first choice was Apache Module mod_macro, however, it has too many limitations. My second choice was to use mustache templates and I was super excited that it is also available in bash! Everything seems great until I attempted to use arrays, and it did not work. Most likely because it was implemented for Bash 3.x which is 10 years old. I did not want to mess with my environment by adding or switching to older version of Bash. Because Scala is my weapon of choice, I decided for my third attempt, to try solving this problem using Scala and Twirl templating engine. I know it might seem like an overkill, however, my previous choices have failed me, so I wanted my next attempt to be the final one! 😎
What are some alternatives?
When comparing bash-commons and mo you can also consider the following projects:
bashkit - Official bashkit repository
Mustache - Logic-less Ruby templates.
basher - A package manager for shell scripts.
bashify - few helper functions in bash ( especially string manipulation functions )
balls - Bash on Balls
bash-oo-framework - Bash Infinity is a modern standard library / framework / boilerplate for Bash
awesome-bash - A curated list of delightful Bash scripts and resources.
toolbox - Module framework for Bash
bash3boilerplate - Templates to write better Bash scripts