spacelift-io / spacectl

Spacelift client and CLI
MIT License
131 stars 35 forks source link

Extract Spacelift API client as a standalone library #189

Closed alexjurkiewicz closed 12 months ago

alexjurkiewicz commented 1 year ago

So I can use it for my own experiments. Please? 🙏

tomasmik commented 1 year ago

I believe that the client itself is pretty much all you need and it's already a separate package: https://github.com/spacelift-io/spacectl/blob/main/client/client.go

We do not have any premade API requests, they are mostly crafted where they are used with no generic client.

peterdeme commented 1 year ago

To add to Tomas' comment, probably there are also better ways to do it. Like some sort of code generator like this one.

Our GraphQL schema is available at: https://<your-account-name>.spacelift.io/graphql More tips: https://docs.spacelift.io/integrations/api.html#viewing-the-graphql-schema

alexjurkiewicz commented 12 months ago

Thank you for the feedback! The client has been great 😸