Additionally, grm repos find could also generate a list, so it can be tracked in version control. Maybe together with a diffing function that shows new/decommissioned repositoried on the remote side.
Open questions:
Auth? API token via env variable? Something like --token-command "pass show github | head -1" to easily integrate with password managers?
Which services? For me, only GitHub, GitLab and Gitea are interesting. If properly abstracted in the code, adding new services should be easy.
Filtering for remote repositories to pull. Should be any combination of: user (pulling all visible repos of the specified user), group (pulling all visible repos of the group, recursively).
Would be awesome be be able to just get a list of repos from GitLab/GitHub/Gitea whatever.
Something like
grm repos sync --from github --token xxx
grm repos sync --from gitlab --url https://gitlab.example.com --user mymyuser --group mygroup --token xxx
*grm repos sync --from gitea --url https://gitea.example.com --group mygroup --group myothergroup --token xxx
Additionally,
grm repos find
could also generate a list, so it can be tracked in version control. Maybe together with a diffing function that shows new/decommissioned repositoried on the remote side.Open questions:
--token-command "pass show github | head -1"
to easily integrate with password managers?API clients: