function _invoke(session, args, callback) {
	const argv = _yargs.parse(args);
	const restCtx = session.env('current').ctx;

	RestAPI.Config.getTenantConfig(restCtx, argv.t, function (err, config) {
		if (err) {
			throw new HttpError(err.code, err.msg);
		}

		const moduleName = argv._[0];
		if (moduleName && !config[moduleName]) {
			throw new ValidationError('moduleName', util.format('No configuration found for module "%s"', moduleName));
		} else if (moduleName) {
			config = config[moduleName];
		}

		// Output the requested configuration to the console
		console.log(JSON.stringify(config, null, 2));

		return callback();
	});
}
/*!
 * Invoke the command with the given session and arguments
 */
Invoke the command with the given session and arguments
Invoke the command with the given session and arguments
function _invoke(session, args, callback) {
	const argv = _yargs.parse(args);
	const restCtx = session.env('current').ctx;
	RestAPI.Config.getTenantConfig(restCtx, argv.t, function (err, config) {
		if (err) {
			throw new HttpError(err.code, err.msg);
		}
		const moduleName = argv._[0];
		if (moduleName && !config[moduleName]) {
			throw new ValidationError('moduleName', util.format('No configuration found for module "%s"', moduleName));
		} else if (moduleName) {
			config = config[moduleName];
		}
		console.log(JSON.stringify(config, null, 2));
		return callback();
	});
}
function _invoke ( session , args , callback ) { const argv = _yargs . parse ( args ) ; const restCtx = session . env ( 'current' ) . ctx ; RestAPI . Config . getTenantConfig ( restCtx , argv . t , function ( err , config ) { if ( err ) { throw new HttpError ( err . code , err . msg ) ; } const moduleName = argv . _ [ 0 ] ; if ( moduleName && ! config [ moduleName ] ) { throw new ValidationError ( 'moduleName' , util . format ( 'No configuration found for module "%s"' , moduleName ) ) ; } else if ( moduleName ) { config = config [ moduleName ] ; } console . log ( JSON . stringify ( config , null , 2 ) ) ; return callback ( ) ; } ) ; }
Invoke the command with the given session and arguments
Invoke the command with the given session and arguments
// Output the requested configuration to the console