Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Sure, so I've forked a rust repo, called rush, and I've started playing around, fixing a few things, and adding some functionality. https://github.com/js-simp/rush I want to implement the hints feature, (suggestions for commands based on history) I believe I should make use of the hint module, but I have no idea how to implement it. There's a struct called HistoryHinter within hint, with a pub fn called hint. I have no idea how to adopt it to the existing code, what has to be imported, how to get started...
Not sure if it will help in this case (docs always take effort to write and make good), but most crates have an examples directory in the root of their repo which can be helpful in the absence of guide-level docs https://github.com/kkawakam/rustyline/tree/master/examples
Related posts
- [Release v0.2.0] promkit: A toolkit for building interactive command-line tools in Rust
- Ghee 0.4 - The tastiest way to work with Linux extended attributes (xattrs)
- After years of bash, I actually found a shortcut I never heard about.
- Is there an equivalent Rust crate?
- I wrote a scheme in Rust called Marwood