fix(dev-infra): clean up usages within pullapprove tooling (#37338)

Clean up pullapprove tooling to use newly created common utils.
Additionally, use newly created logging levels rather than
verbose flagging.

PR Close #37338
This commit is contained in:
Joey Perrott
2020-05-28 14:57:47 -07:00
committed by atscott
parent c8f7fc22c7
commit dffcca73e4
3 changed files with 32 additions and 40 deletions

View File

@ -10,11 +10,8 @@ import {verify} from './verify';
/** Build the parser for the pullapprove commands. */
export function buildPullapproveParser(localYargs: yargs.Argv) {
return localYargs.help()
.strict()
.option('verbose', {alias: ['v'], description: 'Enable verbose logging'})
.demandCommand()
.command('verify', 'Verify the pullapprove config', {}, ({verbose}) => verify(verbose));
return localYargs.help().strict().demandCommand().command(
'verify', 'Verify the pullapprove config', {}, () => verify());
}
if (require.main === module) {