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.
cluster.go#getClusters or container.go#createServerDescribe 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.
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:
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: