1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.commitTask = void 0;
|
4 | const parse_commit_1 = require("../parsers/parse-commit");
|
5 | function commitTask(message, files, customArgs) {
|
6 | const commands = ['commit'];
|
7 | message.forEach((m) => commands.push('-m', m));
|
8 | commands.push(...files, ...customArgs);
|
9 | return {
|
10 | commands,
|
11 | format: 'utf-8',
|
12 | parser: parse_commit_1.parseCommitResult,
|
13 | };
|
14 | }
|
15 | exports.commitTask = commitTask;
|
16 |
|
\ | No newline at end of file |