makesure
shellharden
makesure | shellharden | |
---|---|---|
13 | 16 | |
330 | 4,556 | |
- | - | |
9.2 | 5.0 | |
about 1 month ago | about 1 month ago | |
Shell | Rust | |
MIT License | Mozilla Public License 2.0 |
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
shellharden
-
Shellcheck finds bugs in your shell scripts
Everytime I see Shellcheck coming up, I have to mention shellharden[0] written by a colleague of mine. It is basically shellcheck but it applies the suggested changes automatically.
0: https://github.com/anordal/shellharden
-
similar to shellcheck?
Also worth mentioning shellharden
-
Bash Pitfalls
See also:
* https://www.shellcheck.net/ — linting tool to avoid common mistakes and improve your script
* Bash Practices: https://mywiki.wooledge.org/BashGuide/Practices
* Bash Pitfalls: https://mywiki.wooledge.org/BashPitfalls
* safe ways to do things in bash: https://github.com/anordal/shellharden/blob/master/how_to_do...
* better scripting: https://robertmuth.blogspot.in/2012/08/better-bash-scripting...
* robust scripting: https://www.davidpashley.com/articles/writing-robust-shell-s...
-
Code formatter, linters, etc. Recommendations?
There is shellcheck, and shellharden which is a strict version of it. There are similar stuff here, some that also help with your editor. You can also use a docker version of shfmt. See here for a quick tutorial on shfmt.
-
What is best Method of Submitting Bash Script, short Python ignorance confession (lament.)
Regarding linters, there are several of them in most languages.For bash, there is Shellcheck or a more strict (and sometimes confusing) Shellharden to do exactly what you want.
-
Awesome Rewrite It In Rust - A curated list of replacements for existing software written in Rust
For example, shellharden looks awesome.
- anordal/shellharden Safe ways to do things in bash
- How to do things safely in Bash
- How to do things safely in Bash (2018)
What are some alternatives?
babashka - Native, fast starting Clojure interpreter for scripting
ShellCheck - ShellCheck, a static analysis tool for shell scripts
rust_cmd_lib - Common rust command-line macros and utilities, to write shell-script like tasks in a clean, natural and rusty way
shfmt - Dockernized shfmt. This formats shell script.
frawk - an efficient awk-like language
shfmt - A shell formatter (sh/bash/mksh)
scripts - Useful scripts that I find handy to work with
azure-policy - Repository for Azure Resource Policy built-in definitions and samples
run_lib - A bash script to help you organise and allow discovery of your project's scripts.
sh - A shell parser, formatter, and interpreter with bash support; includes shfmt
PowerShell - PowerShell for every system!