K3d: [FEATURE] Expose cluster methods for external usage

Created on 16 Sep 2019  路  2Comments  路  Source: rancher/k3d

Scope of your request

I'd like to create a cluster from my Go code. As of now, I could only pass a custom cli.Context to the commands to do that.

Describe the solution you'd like

Maybe refactor the cli package and move all non cli-related stuff into a separated package.

Describe alternatives you've considered

Creating a custom cli.Context is kinda odd and I can't access the outputs from code.

enhancement

Most helpful comment

Hey there, thanks for the request!
I know, that the project setup is really messy and suboptimal, as it grew organically without a real plan in mind.
However, I already started working on a complete refactoring of the project, which will also make it usable as a package/module (similar to kubectl) :+1:

All 2 comments

Hey there, thanks for the request!
I know, that the project setup is really messy and suboptimal, as it grew organically without a real plan in mind.
However, I already started working on a complete refactoring of the project, which will also make it usable as a package/module (similar to kubectl) :+1:

Landing implicitly with k3d v3.0.0 :+1:

Was this page helpful?
0 / 5 - 0 ratings