cli icon indicating copy to clipboard operation
cli copied to clipboard

Extract CF LIB into separate package

Open igm opened this issue 12 years ago • 4 comments

It would be great to have "cf lib" separated from this CF CLI into separate project so that others can benefit and reuse all the work that has been done here.

igm avatar May 29 '14 13:05 igm

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/72257176.

cf-gitbot avatar May 29 '14 13:05 cf-gitbot

Thanks for bringing this up.

As we start thinking about plugins this us something we will absolutely want for ourselves. I don't think we can guarantee that the interface will be anything close to stable for the time being. In the tile I've worked on the cli we've aggressively refactored our API layer numerous times, breaking the interface each time.

For now, is there any reason why you wouldn't just link against the cli or fork it and use it as a dependency? Assuming you want to use our API layer, you should be able to use that in your code the same way any of our commands do.

Sent From A Very Small Keyboard

On May 29, 2014, at 6:19, Igor Mihalik [email protected] wrote:

It would be great to have "cf lib" separated from this CF CLI into separate project so that others can benefit and reuse all the work that has been done here.

— Reply to this email directly or view it on GitHub.

tjarratt avatar May 29 '14 19:05 tjarratt

I tried to submit PRs early in the year to make the internal code more reusable by other Go code and they weren't merged "this project won't become a shared lib".

I am glad the stance on this has changed.

On Fri, May 30, 2014 at 5:58 AM, Tim Jarratt [email protected] wrote:

Thanks for bringing this up. As we start thinking about plugins this us something we will absolutely want for ourselves. I don't think we can guarantee that the interface will be anything close to stable for the time being. In the tile I've worked on the cli we've aggressively refactored our API layer numerous times, breaking the interface each time. For now, is there any reason why you wouldn't just link against the cli or fork it and use it as a dependency? Assuming you want to use our API layer, you should be able to use that in your code the same way any of our commands do. Sent From A Very Small Keyboard

On May 29, 2014, at 6:19, Igor Mihalik [email protected] wrote:

It would be great to have "cf lib" separated from this CF CLI into separate project so that others can benefit and reuse all the work that has been done here.

—

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry/cli/issues/178#issuecomment-44577357

drnic avatar May 29 '14 20:05 drnic

This is realistically very far away.

Until we do some other clean up on the CC API, I'm hesitant to create a new contract that would require support and care.

We'll see how things turn out in plugins. Closing for now.

lcddave avatar May 29 '14 20:05 lcddave