nl_tokens: Based on the information passed from the CLI by the commander module this function determines whether to use the default Kes class or use the override class provided by the user
pl_tokens: function determineKesClass ( options , Kes ) { let KesOverride ; // If there is a kes class specified, use that const kesClass = <mask> ( options , 'kesClass' ) ; if ( kesClass ) { KesOverride = loadKesOverride ( process . cwd ( ) , kesClass ) ; } else { let kesFolder ; // Check if there is kes.js in the kes folder if ( options . kesFolder ) { kesFolder = options . kesFolder ; } else { kesFolder = path . join ( process . cwd ( ) , '.kes' ) ; } KesOverride = loadKesOverride ( kesFolder ) ; // If the first Kes override didn't load, check if there is // a kes.js in the template folder. if ( ! KesOverride ) { const template = get ( options , 'template' , '/path/to/nowhere' ) ; kesFolder = path . join ( process . cwd ( ) , template ) ; KesOverride = loadKesOverride ( kesFolder ) ; } } return KesOverride || Kes ; }