Soliciting opinions on a plugin
CLI
#20910
sureshjoshi
started this conversation in
Development
Replies: 2 comments 3 replies
-
Regarding migrations for plugins (whether in-repo or out of repo), maybe beneficial if plugins could declare a version of the (still unstable) Pants API they require? And we would have to export an API version from Pants. The thought is that the API need not be stable before we start using semantic versioning. (Thought we could end up with like v151.87.3 etc. etc.) |
Beta Was this translation helpful? Give feedback.
1 reply
-
I guess my instinct is to get rid of the need for boilerplate rather than making boilerplate easier to generate... ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is mostly a screenshot-driven discussion based on some ideas I had early in my maintainer ship that I'm finally getting time to get back to.
This originated as an annoyance I had that there was a lot of boilerplate to create a new plugin (the need for new plugins was largely alleviated by
adhoc_tool
).So, my idea was to have a slim CLI around the act of creating and cookie-cuttering plugin code. I've picked this back up with the start of a migration tool to help migrate in-repo plugins on breaking changes. Again, early days and just a proof-of-concept right now.
https://github.com/sureshjoshi/pants-plugins/blob/e5c2a2e735621b1cc6fbfe02d8eee9215a431079/pants-plugins/experimental/migrate/rules.py#L18-L49
Below
preview
meansexperimental
.I'd be interested in hearing any gripes devs have in building in-repo plugins that might be solved by a simple CLI. This does not cover something like "rule errors are hard", for which we have another solution - and there's nothing much to do here for that problem.
Beta Was this translation helpful? Give feedback.
All reactions