Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const doc: ITaskFunction = async () => {
process.env.FORCE_COLOR = "0";
// Get all command definitions
const myConfig = ImperativeConfig.instance;
// myConfig.callerLocation = __dirname;
myConfig.loadedConfig = require("../src/imperative");
myConfig.loadedConfig.commandModuleGlobs = ["src/cli/*/*.definition!(.d).*s"];
// Need to set this for the internal caller location so that the commandModuleGlobs finds the commands
process.mainModule.filename = __dirname + "/../package.json";
await Imperative.init(myConfig.loadedConfig);
const loadedDefinitions = Imperative.fullCommandTree;
clearRequire.all(); // in case the code has changed, reload any code
let totalCommands = 0;
let markdownContent = "# Zowe CLI cics-deploy plugin command reference\n\n";