Add new command for creating a workspace from existing projects
Now that pub workspaces are a thing, we should probably have an automated way of creating the outer pubspec.yaml for it and updating the projects pubspec.yaml to add resolution: workspace.
I'm not sure we need any information from the user besides what path to do this (not sure if anyone has a workspace folder with non-workspace projects inside or something), but maybe something to think about.
CC @DanTup
not sure if anyone has a workspace folder with non-workspace projects inside or something
I also don't know how common this is, but if it was supported (for ex. allowing each project to be passed dart pub create-workspace ./ project1/ project2/ nested/project3) then IDEs could potentially show a pick-list of all the projects they've discovered in the workspace and let the user untick any that are not.
Yeah - I think something like dart pub workspace add makes a lot of sense