-
Notifications
You must be signed in to change notification settings - Fork 268
[FEATURE REQUEST] Export CliRunner #457
Comments
@ookami-kb could you share, why you don't want to call |
@incendial we add dependency for |
Ah, I see, thanks. Have you tried global activate or it's less convenient for you? I'm asking, because I think we should avoid exporting |
Yeah, it's less convenient since:
But I can understand your point as well. |
I've checked Dart SDK repo and it looks like this limitation for execution of transitive dependencies is intentional: dart-lang/sdk#23426 How do you solve this problem right now? Maybe you can start with |
Yes, it's exactly what I did for now. |
@ookami-kb cli runner will become a part of public API. It's occurred, that this use-case is pretty common, so we'll support it officially |
Available in 5.0.0 🚀 |
It would be useful to have
CliRunner
exported.Use case
We have a package where we customize analyzer rules to share the settings across our products. Recently we've added
dart_code_metrics
as a dependency to share its configuration as well. The only problem so far is that we cannot use the CLI analyzer because of the restriction "Cannot run executables in transitive dependencies".Exporting
CliRunner
would allow creating an executable in our package and proxy all the calls toCliRunner
.The text was updated successfully, but these errors were encountered: