UNPKG

339 BJavaScriptView Raw
1// Add all commands to yargs, if not executing from within the ADX context since ADX already adds these to yargs
2if (!process.env.ADX_CLI_CONTEXT) {
3 const { yargs: y } = require('../singleton');
4 const commands = require('../lib/gulp/commands');
5
6 commands.forEach((cmd) => {
7 y.command(cmd.command, cmd.desc, cmd.builder);
8 });
9}