tilt icon indicating copy to clipboard operation
tilt copied to clipboard

Make cli module & methods public

Open mandrean opened this issue 2 years ago • 1 comments

Describe the Feature You Want

The ability to access the tilt cli module & Cobra commands programmatically. Exactly how it already is with ctlptl!

Current Behavior

The cli module is internal and its methods are private.

Why Do You Want This?

It would be cool to be able to build new tools that combine Tilt with other tools from the ecosystem programmatically, without having to call the external tilt binary. Exactly how it already is with ctlptl and many other tools!

mandrean avatar Mar 04 '23 22:03 mandrean

can you talk a little bit more about why you don't want to run tilt as an external binary?

Tilt runs its own apiserver (https://github.com/tilt-dev/tilt-apiserver), so embedding it isn't quite as simple calling a function. But there are rich apis for interoperating with it from a separate process.

nicks avatar Mar 07 '23 08:03 nicks