Documentation!
This commit is contained in:
parent
15d819af22
commit
4e81b0be9b
|
@ -23,6 +23,7 @@ async function main(): Promise<void> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Run `git push <remote> <...args>`. */
|
||||||
async function gitPush(remote: string, args: string[]): Promise<void> {
|
async function gitPush(remote: string, args: string[]): Promise<void> {
|
||||||
await runCommand("git", {
|
await runCommand("git", {
|
||||||
args: [
|
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[]> {
|
async function gitRemote(): Promise<string[]> {
|
||||||
const output = await runAndReturnStdout("git", { args: ["remote"] });
|
const output = await runAndReturnStdout("git", { args: ["remote"] });
|
||||||
return output.trim().split("\n").filter((remote) => remote.length > 0);
|
return output.trim().split("\n").filter((remote) => remote.length > 0);
|
||||||
|
|
Loading…
Reference in New Issue