From 4e81b0be9bcd508402c5db24b6698f48347272a0 Mon Sep 17 00:00:00 2001 From: Bauke Date: Tue, 1 Aug 2023 20:50:31 +0200 Subject: [PATCH] Documentation! --- .bauke/scripts/simple-git-push.ts | 2 ++ 1 file changed, 2 insertions(+) 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);