Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull SubCommands into libraries #17

Open
eljobe opened this issue Jul 27, 2016 · 1 comment
Open

Pull SubCommands into libraries #17

eljobe opened this issue Jul 27, 2016 · 1 comment

Comments

@eljobe
Copy link

eljobe commented Jul 27, 2016

I'd like to make a command-line tool very similar in structure to the hetznerctl tool you have. But, it would have different SubCommand instances specific to the needs of my organization. It would be great to extract the definitions of the commands and the generic parts of the main function into libraries which would make it easy for my tool to use some of the same SubCommand instances, plus some new ones of my own design.

If you think this is a good idea, I'd be happy to provide you a pull-request refactoring the code for better reuse. (For now, I've just copied and pasted the parts I actually want from the hetznerctl tool.

Let me know.

@almereyda
Copy link

The subcommands could vaguely refer to the object types presented at https://robot.your-server.de/doc/webservice/de.html

Currently these are:

of which some are already available here. A complete API client implementation could also profit from a Hetzner Robot OpenAPI definition, which does not seem to be available at this point.

#8 will be helpful in patching things up here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants