-
Notifications
You must be signed in to change notification settings - Fork 547
feat: Support plugin kind in CLI publish command #13997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| cloudquery_api "github.com/cloudquery/cloudquery-api-go" | ||
| "github.com/cloudquery/cloudquery/cli/internal/auth" | ||
| "github.com/cloudquery/plugin-sdk/v4/plugin" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CLI should not reference the SDK, only https://github.com/cloudquery/plugin-pb-go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I see it's used for the docs command too so we might want to refactor it at some point. The API surface the CLI should interact with is https://github.com/cloudquery/plugin-pb-go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we should refactor this at some point. It will mean copying quite a bit of code from the SDK into plugin-pb-go I think, e.g. all the table struct definitions and how to convert from Arrow to that.
| Name string `json:"name"` | ||
| Message string `json:"message"` | ||
| Version string `json:"version"` | ||
| Kind cloudquery_api.PluginKind `json:"kind"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could also make it a string or any other wrapper type and convert, but this works as we keep the enums consistent
🤖 I have created a release *beep* *boop* --- ## [3.19.0](cli-v3.18.0...cli-v3.19.0) (2023-09-22) ### Features * Support plugin kind in CLI publish command ([#13997](#13997)) ([c2bac9c](c2bac9c)) ### Bug Fixes * **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.10.0 ([#13955](#13955)) ([46ac73d](46ac73d)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.10.0 ([#13978](#13978)) ([2efdf55](2efdf55)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.10.2 ([#13988](#13988)) ([aebaddf](aebaddf)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.9.0 ([#13960](#13960)) ([f074076](f074076)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
<!-- 🎉 Thank you for making CloudQuery awesome by submitting a PR 🎉 --> #### Summary Follow up to #13997 <!-- Use the following steps to ensure your PR is ready to be reviewed - [ ] Read the [contribution guidelines](../blob/main/CONTRIBUTING.md) 🧑🎓 - [ ] Run `make lint` to ensure the proposed changes follow the coding style 🚨 (install golangci-lint [here](https://golangci-lint.run/usage/install/#local-installation)) - [ ] Run `make test` to ensure the proposed changes pass the tests 🧪 - [ ] If changing a source plugin run `make gen` to ensure docs are up to date 📝 - [ ] Ensure the status checks below are successful ✅ ---> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Summary
Replaces #13996. Supports plugin kind in the CLI when publishing plugins