-
Notifications
You must be signed in to change notification settings - Fork 31
Meta: Collect relevant use cases from the cookbook #26
Comments
My first try: I implemented this script to resize JPGs in #23 It uses glob, rayon, and image. I think of these three, glob and rayon are general purpose for CLI tools but dealing with image is more special purpose. |
I can try implementing a simple archiver app based on the decompress a tarball & compress directory into tarball cookbooks. |
Sure, go ahead! Feel free to post a link to a repo here. I'd love to hear what surprised you with quicli and what was missing :) |
I can write a simple |
Go right ahead! I'd to get feedback on this :) Even just a gist with a few lines of Rust code and a Cargo.toml work! |
Here's the main.rs and the Cargo.toml |
Looks good, @deg4uss3r! This waits for the connection to close before printing, right? I think you could wrap By the way: You put these files into the same gist – and have it compile – by telling cargo the explicit path to your [[bin]]
path = "main.rs" you can just drop the two files into the same directory. I'm pretty sure you can specify the |
I updated the main.rs gist per your suggestions. I like it a lot more now, but it does deviate a bit from the Cookbook example now. |
@killercup feel free to steal ideas from the ergo cookbook examples. I just pushed all of the major "core crates" and am going to start working on getting the ergo cookbook started. |
I've been writing a simple cli tool using quicli for zip and tar files packing and unpacking: My thoughts so far:
|
Thanks for the great feedback, @mattgathu!
Cool! Do you have a public repo? I'd love to collect some "quicli in the wild" links… and opened #62 for that :)
Very good point. This because of two things:
Ah, interesting! Do you think it'd make sense to cover more advanced structopt usage in a guide? (How to do subcommands was requested, too.)
Yeah, sorry, that's not explicitly mentioned I believe. The closure-like syntax in |
The Rust Cookbook has a bunch of
Many of these examples can work as CLI apps. We should go through them and see if there are some common patterns that we want to offer abstractions for.
The text was updated successfully, but these errors were encountered: