1
Fork 0

Documentation!

This commit is contained in:
Bauke 2023-08-01 20:50:31 +02:00
parent 15d819af22
commit 4e81b0be9b
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 2 additions and 0 deletions

View File

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