UNPKG

netlify-cli

Version:

Netlify command line tool

13 lines 542 B
import { injectForceFlagIfScripted } from './scripted-commands.js'; import { CI_FORCED_COMMANDS } from '../commands/main.js'; // This function is used to run the program with the correct flags export const runProgram = async (program, argv) => { const cmdName = argv[2]; // checks if the command has a force option const isValidForceCommand = cmdName in CI_FORCED_COMMANDS; if (isValidForceCommand) { injectForceFlagIfScripted(argv); } await program.parseAsync(argv); }; //# sourceMappingURL=run-program.js.map