Coder Social home page Coder Social logo

Add pouch/client package about pouch HOT 4 CLOSED

alibaba avatar alibaba commented on May 1, 2024
Add pouch/client package

from pouch.

Comments (4)

Ace-Tang avatar Ace-Tang commented on May 1, 2024 2

sure, I will integrate client and cli package

from pouch.

allencloud avatar allencloud commented on May 1, 2024

Yes, I strongly agree what Letty said.

For RESTful API pouchd provides, almost we can divide into two kinds of callers for end-users:

  • Command Line to pouchd;
  • A program integrating API client to call pouchd;

While more technically, the first part is also to encapsulate API client to make calls torwards pouchd. Therefore, I recommend that we should split the command line codes and API client side code.

I think @Ace-Tang has started the latter parts, while there are still some codes coupling in the code base, such as:
https://github.com/alibaba/pouch/blob/master/cli/pull.go#L35-L50
https://github.com/alibaba/pouch/blob/master/cli/stop.go#L29-L32
https://github.com/alibaba/pouch/blob/master/cli/start.go#L27-L30
and so on.

Would you like to help make code decouple explicitly, and command line codes are responsible for cli, API client code are responsible for api calling? @Ace-Tang
I think this is really important at the very beginning of project pouch. So maybe we should promote the priority of this work.

from pouch.

allencloud avatar allencloud commented on May 1, 2024

That could not be better!!! 🥂

from pouch.

allencloud avatar allencloud commented on May 1, 2024

I think we have already walked on the right direction, thanks to @Ace-Tang 's contribution. Closing this issue.

from pouch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.