* Checks to make sure that the required arguments are passed * Throws an exception if any are not.
(path, adapterNpmName)
| 103 | * Throws an exception if any are not. |
| 104 | */ |
| 105 | function checkRequiredArguments (path, adapterNpmName) { |
| 106 | if (!path) { |
| 107 | throw new Error("Path is required when running init."); |
| 108 | } |
| 109 | if (!adapterNpmName) { |
| 110 | throw new Error("The adapter's npm name is required when running init."); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * CONFIG |