lib/config.js
function endDialog(success, config) {
    if (success) {
        createConfigFile(config);
        console.log();
        process.stdout.write('Succesfully configured gas');
        checkbox.display('green');
        process.exit(0);
    } else {
        console.log(`Only 'y' and 'n' are accepted inputs.`);
        process.stdout.write('Failed to configure gas');
        checkbox.display('red');
        process.exit(1);
    }
}
function endDialog(success, config) {
    if (success) {
        createConfigFile(config);
        console.log();
        process.stdout.write('Succesfully configured gas');
        checkbox.display('green');
        process.exit(0);
    } else {
        console.log(`Only 'y' and 'n' are accepted inputs.`);
        process.stdout.write('Failed to configure gas');
        checkbox.display('red');
        process.exit(1);
    }
}
function endDialog ( success , config ) { if ( success ) { createConfigFile ( config ) ; console . log ( ) ; process . stdout . write ( 'Succesfully configured gas' ) ; checkbox . display ( 'green' ) ; process . exit ( 0 ) ; } else { console . log ( ` ` ) ; process . stdout . write ( 'Failed to configure gas' ) ; checkbox . display ( 'red' ) ; process . exit ( 1 ) ; } }
Create a config file based on the values provided

@param {String} success - Whether or not the dialog completed succesfully
@param {String} config - The config we created trough the dialog
@returns {void}
Create a config file based on the values provided