wordpress-mobile / release-toolkit-gutenberg-mobile

Automation Scripts for Releasing Gutenberg-Mobile Updates to the WordPress Mobile Apps.
Mozilla Public License 2.0
5 stars 2 forks source link

[CLI] UIpdate git package to use a client #161

Closed jhnstn closed 11 months ago

jhnstn commented 11 months ago

This replaces the existing git functions with a client interface. This simplifies the cases where multiple git commands are used.

Example

// git package imported as `g`
git := g.NewGitClient(directory, true)
git.Clone(repo, "depth=1")
git.Switch(branch, "--create")
...
git.Push()