Skip to content

Commit

Permalink
Add yargs for the repo is clean check (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
agubler authored Aug 13, 2018
1 parent c30890b commit d51225f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/repo-is-clean-check.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
import * as yargs from 'yargs';
import { isRepoClean } from './utils/checks';

const {
branch: releaseBranch
}: {
branch: string;
} = yargs.option('branch', {
type: 'string',
default: 'master'
}).argv as any;

(async function() {
if (!(await isRepoClean())) {
if (!(await isRepoClean(releaseBranch))) {
process.exit(1);
}
})();

0 comments on commit d51225f

Please sign in to comment.