sub
checkexec
sub | checkexec | |
---|---|---|
4 | 4 | |
1,733 | 80 | |
0.0% | - | |
0.0 | 0.0 | |
over 2 years ago | over 1 year ago | |
Shell | Rust | |
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.
sub
-
The Unreasonable Effectiveness of Makefiles
Scripts in bin have no documentation, no easy way to enumerate them, etc. There is definitely a time and a place for bin scripts, especially as things grow in complexity. However the beauty of just is that there's one file (the justfile) that defines all of your project's actions. You don't have to go spelunking into bin to figure out how to tweak a compiler flag, etc. And since just will run anything there's no reason why your complex bin scripts can't just be called from a simple one liner task in a justfile.
Could your write a bash script that does stuff like enumerate all the bin scripts, pull out documentation comments, etc.? Absolutely, and people have followed that pattern for a while (see https://github.com/qrush/sub) but it's a bunch of boilerplate to copy between projects. Just pulls out that logic into a simpler config file.
- Bash-Oneliner: A collection of handy Bash One-Liners and terminal tricks
- Bashly – Create beautiful bash scripts from simple YAML configuration
-
sd: my script directory
Many moons ago Basecamp published sub (github) which runs on a similar idea with different tradeoffs being chosen.
checkexec
-
The Unreasonable Effectiveness of Makefiles
You might find checkexec useful to pair with just, it is basically a tool that only does the file-based dependency part of make: https://github.com/kurtbuilds/checkexec
-
Just 1.0 released!
If you specifically need the "update if modified" functionality from Make, I actually made a command specifically for this called checkexec. I use it for image processing, building C libraries, building CSS files, and a few other use cases. It saves meaningful time on repeated execution runs.
-
Best way to "watch" files with no daemon running?
Are you just trying to look at file modified time stamps? checkexec might be what you’re after.
- checkexec: a CLI tool to conditionally execute commands only when files in a dependency list have changed
What are some alternatives?
bashly - Bash command line framework and CLI generator
just - 🤖 Just a command runner
shfmt - Dockernized shfmt. This formats shell script.
inotify-rs - Idiomatic inotify wrapper for the Rust programming language
tlog - Terminal I/O logger
cargo-husky - Setup Git hooks automatically for cargo projects with :dog:
hofmod-cli - Hofstadter generator for Golang CLIs
justl.el - Major mode for driving just files.
tclmake - Partial make clone in pure Tcl
pre-commit-hooks - Some out-of-the-box hooks for pre-commit
vscode-bash-debug - Bash shell debugger extension for VSCode (based on bashdb)
vim-just - Vim Just Syntax