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

Function generateInstallAdapterCommand

src/commitizen/adapter.js:80–82  ·  view source on GitHub ↗

* Generates an npm install command given a map of strings and a package name

(stringMappings, adapterNpmName, packageManager = "npm")

Source from the content-addressed store, hash-verified

78 * Generates an npm install command given a map of strings and a package name
79 */
80function generateInstallAdapterCommand(stringMappings, adapterNpmName, packageManager = "npm") {
81 return `${packageManager} ${getInstallCommand(packageManager)} ${adapterNpmName} ${getInstallOptions(stringMappings)}`;
82}
83
84/**
85 * Gets the nearest npm_modules directory

Callers 1

initFunction · 0.85

Calls 2

getInstallCommandFunction · 0.85
getInstallOptionsFunction · 0.85

Tested by

no test coverage detected