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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user