Feature request - Export & import of repo collections
schlessera opened this issue · 4 comments
Hey @mixu , thank for the great gr
, it is very useful!
I would really love to see an export & import feature so that developers can share a collection of repos.
I imagine it could work something like this:
- Developer A has a folder full of repos in his
~/dev/company
folder. - He runs
gr export ~/dev/company
. gr
creates a list of relative folder names, corresponding git repo URIs, and corresponding tags for each of the subfolders.- Developer A sends that file (maybe JSON named
gr-export.json
?) to Developer B. - Developer B creates a new folder
~/company-dev
. - Developer B runs the command
gr import gr-export.json ~/company-dev
. gr
now creates each of the subfolders in this new location.- Inside of each folder,
gr
clones the corresponding repo. gr
tags the folders with the same tags they had at Developer A's location.
So, this lets developers share a completely configured folder hierarchy. To onboard a new developer, he simply needs to gr import
the latest company export.
👍 this could be written as a plugin and would be great! happy to accept a PR
@schlessera If you're still interested in this would you like to try out #59 ?
@timja-kainos I am not using gr
with the project I am currently working on.
As soon as I get a new opportunity to work with gr
, I will make sure to test this, but I cannot tell you when that will be...