layerlens icon indicating copy to clipboard operation
layerlens copied to clipboard

Extracting package name from pubspec.yaml

Open martingeorgiu opened this issue 10 months ago • 6 comments

Is there a reason why the --package is required when the imports are in form of package:?

I was thinking that if in the --path there is pubspec.yaml, we can extract the package name directly from there. Then the parameter could be useful and used only when the --path leads to a folder where there is no pubspec.yaml.

martingeorgiu avatar Apr 05 '24 16:04 martingeorgiu