#!/usr/bin/env node /** * @license * Copyright Google LLC 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 */ import * as yargs from 'yargs'; import {buildCaretakerParser} from './caretaker/cli'; import {buildCommitMessageParser} from './commit-message/cli'; import {buildFormatParser} from './format/cli'; import {buildNgbotParser} from './ngbot/cli'; import {buildPrParser} from './pr/cli'; import {buildPullapproveParser} from './pullapprove/cli'; import {buildReleaseParser} from './release/cli'; import {tsCircularDependenciesBuilder} from './ts-circular-dependencies/index'; import {captureLogOutputForCommand} from './utils/console'; import {buildMiscParser} from './misc/cli'; yargs.scriptName('ng-dev') .middleware(captureLogOutputForCommand) .demandCommand() .recommendCommands() .command('commit-message ', '', buildCommitMessageParser) .command('format ', '', buildFormatParser) .command('pr ', '', buildPrParser) .command('pullapprove ', '', buildPullapproveParser) .command('release ', '', buildReleaseParser) .command('ts-circular-deps ', '', tsCircularDependenciesBuilder) .command('caretaker ', '', buildCaretakerParser) .command('misc ', '', buildMiscParser) .command('ngbot ', false, buildNgbotParser) .wrap(120) .strict() .parse();