MCPcopy
hub / github.com/aquasecurity/cloudsploit / loadHelperFile

Function loadHelperFile

index.js:114–123  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

112}
113
114function loadHelperFile(path) {
115 try {
116 var contents = require(path);
117 } catch (e) {
118 console.error(`ERROR: The credential file could not be loaded ${path}`);
119 console.error(e);
120 process.exit(1);
121 }
122 return contents;
123}
124
125function checkRequiredKeys(obj, keys) {
126 keys.forEach(function(key){

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected