makesure
pure-sh-bible
makesure | pure-sh-bible | |
---|---|---|
13 | 29 | |
330 | 6,281 | |
- | - | |
9.2 | 0.0 | |
about 1 month ago | 4 months ago | |
Shell | Shell | |
MIT License | MIT License |
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.
makesure
- I stopped worrying and loved Makefiles
-
Show HN: Just.sh – compiler that turns Justfiles into portable shell scripts
makesure, a similar tool (https://maximullaris.com/makesure-vs-just.html) I'm developing, doesn't require installation in the traditional sense: https://github.com/xonixx/makesure#installation.
Also, I was considering adding the same feature (generating the equivalent shell script) to my tool, but after doing some analysis decided not to pursue this idea for the following reasons: https://github.com/xonixx/makesure/issues/83#issuecomment-98....
-
Just: A Command Runner
Another simple tool similar to this is makesure[1]. It’s written in shell so the idea is you include makesure itself in your repo, which avoids needing to install another tool to run commands on your project.
It’s very simple so isn’t good for everything, but works well as a simple command runner.
[1] https://github.com/xonixx/makesure
-
just VS makesure - a user suggested alternative
2 projects | 13 Aug 2022
-
run VS makesure - a user suggested alternative
2 projects | 13 Aug 2022
-
Frawk: A fast, JITted, statically-typed AWK written in Rust
- mawk (https://invisible-island.net/mawk/) - bundled in some Linux distros (?), known as the fastest byte-code compiled implementation.
All three have very good compatibility, but Gawk is super-set over POSIX standard. I have some evidence here, since I regularly test [1] against these implementations and even some others, like GoAWK.
[1] https://github.com/xonixx/makesure/actions/runs/1830978431
-
How did I run that code again? Tools to help recall
I've been using make to do this for ages, but its syntax really shows its age in a bad way. A while ago I switched to just (https://github.com/casey/just), which is a simple command runner with less unnecessary cruft (for my use case as a command runner) and a much saner syntax, and I've been pretty happy with it so far, I hardly ever need to look up anything.
There's also task (https://taskfile.dev/), which is YAML-based and might work well in an environment where everything else is YAML anyway, and makesure (https://github.com/xonixx/makesure), which is pretty similar to just, but didn't really click with me.
-
How to write idempotent Bash scripts · Fatih Arslan
yes, there is also https://github.com/xonixx/makesure - It is a simple task/command runner inspired by make with declarative goals and dependencies.
-
How to write idempotent Bash scripts
Idempotence is achievable elegantly with makesure tool [1] using @reached_if directive [2]. Full disclosure - I’m the author of the tool.
[1] https://github.com/xonixx/makesure
[2] https://github.com/xonixx/makesure#reached_if
- Show HN: Zero-install task/command runner implemented in Awk
pure-sh-bible
-
Kiss Package Manager
The guy who wrote it, also wrote a POSIX Shell bible: https://github.com/dylanaraps/pure-sh-bible
-
Pure Bash Bible
Do you have any specific examples to cite? The snippets are meant to be run in POSIX-compliant shells like dash/yash/ash/etc, not just Bash in compatibility mode.
In fact, there used to be a section which listed workarounds[1] for bugs in dash, but they have since been fixed[2]. If you are still using an old version of dash, you may need to use them.
[1] https://github.com/dylanaraps/pure-sh-bible/commit/70f410ebb...
[2] https://github.com/dylanaraps/pure-sh-bible/issues/13
- Pure Sh Bible
-
"Immortal" Bash scripts, using inline Nix and a special header block
Personally, I would steer clear of a script that installs dependencies on it's own. Us sysadmins prefer to manage our own dependencies, generally speaking. Instead consider a README that outlines how to meet/install dependencies for the script, or try to find ways to write your script in pure Shell or Bash without using tools like awk, jq, etc. Consider having a look at the Pure Sh Bible for examples of how to do many useful things in pure Sh.
- r/posixshell Lounge
-
Shell in a nutshell
POSIX Shell Tutorial POSIX shell cheat sheet GitHub - dylanaraps/pure-sh-bible: 📖 A collection of pure POSIX sh alternatives to external… Shell Scripting Tutorial
-
Just: A Command Runner
There is the "pure bash bible" but it seems less than maintained these days: https://github.com/dylanaraps/pure-sh-bible
Otherwise you're stuck reading the POSIX standard: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V...
- Unix shell script tactics - a style guide
-
Posix shell compliant
Look at this: https://github.com/dylanaraps/pure-sh-bible
What are some alternatives?
babashka - Native, fast starting Clojure interpreter for scripting
pure-bash-bible - 📖 A collection of pure bash alternatives to external processes.
rust_cmd_lib - Common rust command-line macros and utilities, to write shell-script like tasks in a clean, natural and rusty way
awesome-bash-commands - A curated list of awesome Bash useful commands. Inspired by awesome-shell and bash-handbook.
frawk - an efficient awk-like language
bfetch - 📠Dynamic fetch displayer that SuperB
scripts - Useful scripts that I find handy to work with
scripts-to-rule-them-all - Set of boilerplate scripts describing the normalized script pattern that GitHub uses in its projects.
run_lib - A bash script to help you organise and allow discovery of your project's scripts.
snake-bash - Command Line Snake Game written in BASH
PowerShell - PowerShell for every system!
clh-bash - Arcade game to show your Command Line Hero skills! The game challenges you to enter as many valid commands as you can in 60 seconds!