diff --git a/.bauke/scripts/simple-git-push.ts b/.bauke/scripts/simple-git-push.ts index 6c67687..2093c59 100644 --- a/.bauke/scripts/simple-git-push.ts +++ b/.bauke/scripts/simple-git-push.ts @@ -23,6 +23,7 @@ async function main(): Promise { } } +/** Run `git push <...args>`. */ async function gitPush(remote: string, args: string[]): Promise { await runCommand("git", { args: [ @@ -34,6 +35,7 @@ async function gitPush(remote: string, args: string[]): Promise { }); } +/** Run `git remote` and return all the remote names as an array. */ async function gitRemote(): Promise { const output = await runAndReturnStdout("git", { args: ["remote"] }); return output.trim().split("\n").filter((remote) => remote.length > 0);