source/readers/read-controls.js
function readControls( controlPath, filingCabinet ) {

  logger.showInfo( '*** Reading controls...' );

  // Initialize the store - engine controls.
  logger.showInfo( 'Engine controls:' );
  getControls(
    '/node_modules/md-site-engine/controls',
    '',
    filingCabinet.controls
  );

  // Initialize the store - user controls.
  logger.showInfo( 'Site controls:' );
  getControls(
    controlPath,
    '',
    filingCabinet.controls
  );
}
function readControls( controlPath, filingCabinet ) {

  logger.showInfo( '*** Reading controls...' );

  // Initialize the store - engine controls.
  logger.showInfo( 'Engine controls:' );
  getControls(
    '/node_modules/md-site-engine/controls',
    '',
    filingCabinet.controls
  );

  // Initialize the store - user controls.
  logger.showInfo( 'Site controls:' );
  getControls(
    controlPath,
    '',
    filingCabinet.controls
  );
}
function readControls ( controlPath , filingCabinet ) { logger . showInfo ( '*** Reading controls...' ) ; // Initialize the store - engine controls. logger . showInfo ( 'Engine controls:' ) ; getControls ( '/node_modules/md-site-engine/controls' , '' , filingCabinet . controls ) ; // Initialize the store - user controls. logger . showInfo ( 'Site controls:' ) ; getControls ( controlPath , '' , filingCabinet . controls ) ; }
Reads all controls, including engine's predefined controls.
@param {string} controlPath - The path of the controls directory.
@param {FilingCabinet} filingCabinet - The file manager object.
Reads all controls including engine s predefined controls .