You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project is immensely helpful on its own, thank you guys!
However, the tool I'm currently writing is going to need to rely on terraform being installed, and instead of adding a wrapper around hcdl to manage that, I would love to be able to just import the core functionality of this tool as a library to manage HC's tools.
The way this CLI looks written, it seems like the actual binary part could be consisted of the code in the cli.rs file, plus main.rs and everything else can reside in a library, with the main.rs file importing the relevant functions.
If this is something you are willing to entertain, I could open a draft PR to showcase it, but I'm happy to leave this as just an idea.
Again, thank you for this tool!!
The text was updated successfully, but these errors were encountered:
Apologies for taking a while to notice this issue. I’ve started moving various functionality under lib.rs within this crate as a first step on this issue.
Currently, the documentation needs a lot of work, and I’d like to move to items under lib.rs using thiserror instead of anyhow.
I’m also attempting to ensure that nothing covered by the library code performs any stdout/stderr output. Currently the HTTP Client still does some of this, due to the ProgressBar.
There’s a draft PR open for the current work on this in #8.
I’ve merged my progress here, sorry it’s taking so long. I’d say it’s still very incomplete, mostly due to the Client::download function still producing a progress bar. This can be prevented by setting quiet mode in the client config, but it’s not the cleanest. I probably want to break the client and lib out into their own workspaces too.
This project is immensely helpful on its own, thank you guys!
However, the tool I'm currently writing is going to need to rely on terraform being installed, and instead of adding a wrapper around
hcdl
to manage that, I would love to be able to just import the core functionality of this tool as a library to manage HC's tools.The way this CLI looks written, it seems like the actual binary part could be consisted of the code in the
cli.rs
file, plusmain.rs
and everything else can reside in a library, with themain.rs
file importing the relevant functions.If this is something you are willing to entertain, I could open a draft PR to showcase it, but I'm happy to leave this as just an idea.
Again, thank you for this tool!!
The text was updated successfully, but these errors were encountered: