Skip to content

Pre-release 0.0.6

Latest
Compare
Choose a tag to compare
@MrPicklePinosaur MrPicklePinosaur released this 01 Jun 17:58
· 8 commits to master since this release

Hey everyone πŸ‘‹!

We are back once again for a release πŸš€! In 0.0.6 we have directed our attention in heavily overhauling the ergonomics of shrs. The most awesome improvement is the introduction of dependency injection to most of the API, including hooks, builtins, keybindings, prompt, and more. What this means for you is that instead of passing around a bunch of state structs, you can now query for exactly what state you need! See how this heavily simplifies your code below.

This first example shows the difference when writing a prompt. You no longer need to reach into line_ctx.ctx.state and query for the specific state yourself. Just put desired state in the argument list and you get it right away! No more error handling either!

Similarly, see how writing builtins have become a breeze, with much less noise in the argument noise and no longer requiring implementing a Builtin trait.

Finally, we have done a bunch of work on overhauling the docs with much more descriptive docstrings and code examples in each module! We hope this release has made writing your own shell using shrs that much more delightful.

See you around 🫑
- pinosaur

What's Changed

New Contributors

Full Changelog: 0.0.5...0.0.6