richsalz / ietf-gh-scripts

Scripts to create GH repo's for IETF WG's
MIT License
5 stars 4 forks source link

Initialize the repository inside the script. #14

Closed jyasskin closed 4 years ago

jyasskin commented 4 years ago

Instead of printing shell commands for the user to run.

This also avoids adding files to the initial working directory, which should make it easier to pip-ify these scripts.

It would be possible to use https://gitpython.readthedocs.io/ for a Python interface to Git, but since some of the initialization commands need to be subprocesses anyway, it seemed more straightforward to just call out to the Git utility.

richsalz commented 4 years ago

A tour de force.

richsalz commented 4 years ago

I can live with splitting imports into one line :) Approved. One of my issues is to refactor more of this into utility modules, so this is a start.