bashly
just
bashly | just | |
---|---|---|
15 | 170 | |
1,960 | 18,178 | |
- | - | |
9.2 | 9.4 | |
6 days ago | 5 days ago | |
Ruby | Rust | |
MIT License | Creative Commons Zero v1.0 Universal |
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.
bashly
- Bashly is a command line application to generate bash command line tools
-
Ask HN: Any tool for managing large and variable command lines?
It's heavily inspired by ArgBash (https://argbash.dev/) and uses parts of bashly (https://github.com/DannyBen/bashly/) which are very similar tools :)
- Bashly: Command line application to generate feature-rich bash CLI tools
- Modules, frameworks, libararies
-
What about reviewing Bashly tool?
Here it's site.
- Argbash – Bash Argument Parsing Code Generator
-
How do you manage your local environment?
To remove most of the manual things you have to do to make an environment operational, we also use a bash layer on top of Docker. Takes care of initializing of your database, API or any other services for you and puts multiple docker commands under much simpler ones. So even a junior with minimal experience can run it. I use bashly to generate the bash scripts, recommend that useful generator.
- Bashly is a command line application (written in Ruby) that lets you generate feature-rich bash command line tools.
- GitHub - DannyBen/bashly: Bash command line framework and CLI generator
- Bashly – Create beautiful bash scripts from simple YAML configuration
just
-
Show HN: Bin CLI – A simple task/script runner for any programming language
Most projects I've worked on included a bunch of scripts for common tasks (installing dependencies, starting/stopping dev servers, testing and deploying changes, and so on). There are a few tools designed for this, such as Just (https://just.systems/) and Task (https://taskfile.dev/), and I know some people use Make as a task runner (e.g. https://news.ycombinator.com/item?id=40333481), but I've always preferred the simplicity and universality of shell scripts.
Bin CLI is a tool I wrote to add some of the niceties of these tools to shell scripts: it works even when you're currently in a subdirectory, only requires you to type enough of the command (script) name to uniquely identify it, and allows aliases to be defined. It also allows a project's commands to be listed (along with some help text), supports subcommands, and supports tab completion of command names. Of course scripts can be written in other languages too, just by adding the appropriate shebang.
Collaborators/contributors who don't have Bin CLI installed can just run the scripts directly - so I can enjoy the benefits without adding a hard dependency or extra barrier to entry. However, I also added support for defining one-liner scripts/aliases in a config file (much like "npm run" scripts are defined in package.json) for times when I want to avoid creating many trivial/wrapper scripts for common tasks.
It is implemented as a single Bash script, with minimal dependencies, small enough to keep in my Dotfiles repo (62 KB). I also made .deb and .rpm packages so it can easily be installed system-wide.
-
Tired of Makefiles
I find `just` to be better suited than `make` for this use case: https://github.com/casey/just
The siblings comment is good too, and often I'll put all the various commands into a subdir, and `just` is just an interface to that, particularly so if the script gets complex.
Then, `just` is really a signal "hey, this repo supports this interface" and things like `just -l` for discoverability.
- Just a Command Runner
-
I stopped worrying and loved Makefiles
I don't like makefiles, but I've been enjoying justfiles: https://github.com/casey/just
-
Ask HN: Any tool for managing large and variable command lines?
I started using just [0] on my projects and have been very happy so far. It is very similar to make but focused on commands rather than build outputs.
Define your recipes and then you can compose them as needed.
[0] https://github.com/casey/just
-
Ask HN: What software sparks joy when using?
just - https://github.com/casey/just
-
GitHub switched to Docker Compose v2, action needed
Welp there is absolute chaos in that thread -- guess it's not an April Fools joke.
I wonder if relying on CI for anything other than provisioning machines is a mistake -- maybe we should have never moved from doing things from local scripts written in $LANGUAGE.
That said, I'm probably biased since I'm a massive fan of things like `make` and more appropriately for the current age, `just`[0]
[0]: https://github.com/casey/just
-
Which command did you run 1731 days ago?
> When a command has some cognitive requirements I create a script with some ${1:-default} values and I store them all in $PATH enabled local/bin
I would consider using just for this:
https://github.com/casey/just
-
Using Make – writing less Makefile
Your coworker's experience is more principled: Make is a mediocre tool for executing commands. It wasn't ever designed for that. Although it is pretty common to see what you are mentioning in projects because it doesn't require installing a dependency.
For a repo where an easy to install (single binary) dependency is a non-issue, consider using just. [1] You get `just -l` where you can see all the command available, the ability to use different languages, and overall simpler command writing.
[1] https://github.com/casey/just
What are some alternatives?
ShellCheck - ShellCheck, a static analysis tool for shell scripts
Task - A task runner / simpler Make alternative written in Go
HomeBrew - 🍺 The missing package manager for macOS (or Linux)
cargo-make - Rust task runner and build tool.
fastlane - 🚀 The easiest way to automate building and releasing your iOS and Android apps
cargo-xtask
ngs - Next Generation Shell (NGS)
Taskfile - Repository for the Taskfile template.
hofmod-cli - Hofstadter generator for Golang CLIs
CodeLLDB - A native debugger extension for VSCode based on LLDB
run - Task runner that helps you easily manage and invoke small scripts and wrappers
cargo-release - Cargo subcommand `release`: everything about releasing a rust crate.