1 | export * from './types';
|
2 |
|
3 | import { Options } from './types';
|
4 | import commit from './commit';
|
5 |
|
6 | export default async function main(options: Options) {
|
7 | const repositoryPath = options.repositoryPath ? options.repositoryPath : process.argv[1];
|
8 | const originalWorkingDirector = process.cwd();
|
9 |
|
10 | let result: boolean;
|
11 |
|
12 | process.chdir(repositoryPath as string);
|
13 |
|
14 | result = await commit(options);
|
15 |
|
16 | return result;
|
17 | }; |
\ | No newline at end of file |