src/js/cli.js
function handleInitialize(currentOptions) {
    const recommendedFilePath = path.resolve(__dirname, '../../config/wist-recommended.json');
    let result = 0;
    if (currentOptions.config) {
        result = handleConfiguration(currentOptions.config);
    } else {
        result = handleConfiguration(recommendedFilePath);
    }
    return result
}
function handleInitialize(currentOptions) {
    const recommendedFilePath = path.resolve(__dirname, '../../config/wist-recommended.json');
    let result = 0;
    if (currentOptions.config) {
        result = handleConfiguration(currentOptions.config);
    } else {
        result = handleConfiguration(recommendedFilePath);
    }
    return result
}
function handleInitialize ( currentOptions ) { const recommendedFilePath = path . resolve ( __dirname , '../../config/wist-recommended.json' ) ; let result = 0 ; if ( currentOptions . config ) { result = handleConfiguration ( currentOptions . config ) ; } else { result = handleConfiguration ( recommendedFilePath ) ; } return result }
Creates the .wistrc.json file in the default location if a configuration path is not specified.
@param currentOptions Command lines arguments input by user.
@returns {boolean} True if the initialization succeeds, false if not.
@private
Creates the . wistrc . json file in the default location if a configuration path is not specified .