INNER CODE UNIT · TypeScript
remove
EndBug/add-and-commit · src/main.ts:577
async function remove(
ignoreErrors: 'all' | 'pathspec' | 'none' = 'none',
dryRun = false,
): Promise<(void | Response<void> | string)[]> {
const input = getInput('remove');
if (!input) return [];
const parsed = parseInputArray(input);
const res: (void | Response<void> | string)[] = [];
for (const args of parsed) {
const gitArgs = dryRun
? ['--dry-run', ...parseGitArgs(args)]
: parseGitArgs(args);
res.push(
// Push the result of every git command (which are executed in order) to the array
// If any of them fails, the whole function will return a Promise rejection
await git