Replies: 2 comments
-
Sounds like a great idea! I think the easiest way to get start would be to mirror Hetzner's own hloud cli as far as structuring commands and arguments and so on. On the implementation/rust side, I've previously used clap (tutorial) as a great way to structure/parse command line arguments. For structured output tabled might be useful, although I haven't used it much. Since it's asynchronous, you will need a runtime and for that I would probably just use tokio, since it's more or less the default for Rust programs. Eventually it might make sense to build the CLI as part of this project and ship it as a binary under the same workspace (if you want to, of course), but for early days it'd probably be easier for you to just develop it separately. Let me know if you have any other questions! |
Beta Was this translation helpful? Give feedback.
-
Has a CLI been made for this? Thanks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
This library looks most up to date and is covering more features than any other I'm aware of. I would want to create a wrapper for the API so that I could be able to use it from terminal.
I haven't ever using rust before and I wondered if you could give me some pointers on how to proceed with this and hopefully my work could be merged into this library in the future 💯.
What would be the best way to wrap this api into cli binary?
Beta Was this translation helpful? Give feedback.
All reactions