src/js/cli.js
function handleConfiguration(filePath) {
    if (fs.existsSync(filePath)) {
        filePath = path.resolve(filePath);
    }
    else {
        console.error('Invalid path to configuration file.');
        return 1;
    }
    return setupConfigurationFile(filePath);
}
function handleConfiguration(filePath) {
    if (fs.existsSync(filePath)) {
        filePath = path.resolve(filePath);
    }
    else {
        console.error('Invalid path to configuration file.');
        return 1;
    }
    return setupConfigurationFile(filePath);
}
function handleConfiguration ( filePath ) { if ( fs . existsSync ( filePath ) ) { filePath = path . resolve ( filePath ) ; } else { console . error ( 'Invalid path to configuration file.' ) ; return 1 ; } return setupConfigurationFile ( filePath ) ; }
Creates the .wistrc.json file from the user-defined configuration file.
@param filePath Path to the user-defined configuration file.
@returns {boolean} True if the creation of the configuration file succeeds, false if not.
@private
Creates the . wistrc . json file from the user - defined configuration file .