MCPcopy Index your code
hub / github.com/commitizen/cz-cli / checkRequiredArguments

Function checkRequiredArguments

src/commitizen/init.js:105–112  ·  view source on GitHub ↗

* Checks to make sure that the required arguments are passed * Throws an exception if any are not.

(path, adapterNpmName)

Source from the content-addressed store, hash-verified

103 * Throws an exception if any are not.
104 */
105function 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

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected