src/bin/pgrunner.js
function load_config () {
	let config = {};
	if (fs.existsSync(pgrunner_config_file)) {
		config = JSON.parse(fs.readFileSync(pgrunner_config_file, {'encoding':'utf8'}));
		if (argv.v) {
			debug.log('Loaded from ', pgrunner_config_file);
		}
	}
	if (!is.array(config.servers)) {
		config.servers = [];
	}
	return config;
}
function load_config () {
	let config = {};
	if (fs.existsSync(pgrunner_config_file)) {
		config = JSON.parse(fs.readFileSync(pgrunner_config_file, {'encoding':'utf8'}));
		if (argv.v) {
			debug.log('Loaded from ', pgrunner_config_file);
		}
	}
	if (!is.array(config.servers)) {
		config.servers = [];
	}
	return config;
}
function load_config ( ) { let config = { } ; if ( fs . existsSync ( pgrunner_config_file ) ) { config = JSON . parse ( fs . readFileSync ( pgrunner_config_file , { 'encoding' : 'utf8' } ) ) ; if ( argv . v ) { debug . log ( 'Loaded from ' , pgrunner_config_file ) ; } } if ( ! is . array ( config . servers ) ) { config . servers = [ ] ; } return config ; }
Returns current config
Returns current config