2020-03-17 07:58:17 -04:00
|
|
|
#!/usr/bin/env node
|
2020-03-04 12:42:45 -05:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
2020-03-04 17:37:21 -05:00
|
|
|
import {verify} from './pullapprove/verify';
|
|
|
|
|
2020-03-04 12:42:45 -05:00
|
|
|
const args = process.argv.slice(2);
|
|
|
|
|
2020-03-04 17:37:21 -05:00
|
|
|
|
2020-03-04 12:42:45 -05:00
|
|
|
// TODO(josephperrott): Set up proper cli flag/command handling
|
2020-03-04 17:37:21 -05:00
|
|
|
switch (args[0]) {
|
|
|
|
case 'pullapprove:verify':
|
|
|
|
verify();
|
|
|
|
break;
|
2020-03-04 12:42:45 -05:00
|
|
|
default:
|
|
|
|
console.info('No commands were matched');
|
|
|
|
}
|