UNPKG

424 BPlain TextView Raw
1export * from './types';
2
3import { Options } from './types';
4import commit from './commit';
5
6export 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