function readWskPropsFile()

in src/wskprops.js [37:46]


function readWskPropsFile() {
    const wskFilePath = process.env.WSK_CONFIG_FILE || getWskPropsUserHomeFile();

    if (fs.existsSync(wskFilePath)) {
        log.verbose(`Using openwhisk credentials from ${wskFilePath}${process.env.WSK_CONFIG_FILE ? " (set by WSK_CONFIG_FILE)" : ""}`);
        return fs.readFileSync(wskFilePath, 'utf8');
    } else {
        return null;
    }
}