(args: string[], nodeOptions: SpawnOptions = {})
| 59 | } |
| 60 | |
| 61 | async function git(args: string[], nodeOptions: SpawnOptions = {}) { |
| 62 | return x(GIT, args, { |
| 63 | nodeOptions: { |
| 64 | stdio: "inherit", |
| 65 | ...nodeOptions, |
| 66 | }, |
| 67 | }); |
| 68 | } |
| 69 | |
| 70 | async function fetch({ name, url }: { name: string; url: string }) { |
| 71 | await git(["remote", "add", name, url]); |