packages/LUIS/bin/help.js
function getAllCommands() {
    let resourceTypes = [];
    let tables = {};
    operations.forEach((operation) => {
        let opCategory = operation.target[0];
        if (resourceTypes.indexOf(opCategory) < 0) {
            resourceTypes.push(opCategory);
            tables[opCategory] = [];
        }
        tables[opCategory].push([chalk.cyan.bold(operation.command), operation.description]);
    });

    resourceTypes.sort();

    let sections = [];
    for (let resourceType of resourceTypes) {
        tables[resourceType].sort((a, b) => a[0].localeCompare(b[0]));
        sections.push({
            head: chalk.white.bold(resourceType),
            table: tables[resourceType]
        });
    }

    return sections;
}
function getAllCommands() {
    let resourceTypes = [];
    let tables = {};
    operations.forEach((operation) => {
        let opCategory = operation.target[0];
        if (resourceTypes.indexOf(opCategory) < 0) {
            resourceTypes.push(opCategory);
            tables[opCategory] = [];
        }
        tables[opCategory].push([chalk.cyan.bold(operation.command), operation.description]);
    });

    resourceTypes.sort();

    let sections = [];
    for (let resourceType of resourceTypes) {
        tables[resourceType].sort((a, b) => a[0].localeCompare(b[0]));
        sections.push({
            head: chalk.white.bold(resourceType),
            table: tables[resourceType]
        });
    }

    return sections;
}
function getAllCommands ( ) { let resourceTypes = [ ] ; let tables = { } ; operations . forEach ( ( operation ) => { let opCategory = operation . target [ 0 ] ; if ( resourceTypes . indexOf ( opCategory ) < 0 ) { resourceTypes . push ( opCategory ) ; tables [ opCategory ] = [ ] ; } tables [ opCategory ] . push ( [ chalk . cyan . bold ( operation . command ) , operation . description ] ) ; } ) ; resourceTypes . sort ( ) ; let sections = [ ] ; for ( let resourceType of resourceTypes ) { tables [ resourceType ] . sort ( ( a , b ) => a [ 0 ] . localeCompare ( b [ 0 ] ) ) ; sections . push ( { head : chalk . white . bold ( resourceType ) , table : tables [ resourceType ] } ) ; } return sections ; }
Walks the luis.json and pulls out all
commands that are supported.

@returns {*[]}
Walks the luis . json and pulls out all commands that are supported .