MCPcopy Create free account
hub / github.com/toplenboren/simple-git-hooks / _getCustomConfigPath

Function _getCustomConfigPath

simple-git-hooks.js:385–390  ·  view source on GitHub ↗

* Takes the first argument from current process argv and returns it * Returns empty string when argument wasn't passed * @param {string[]} [argv] * @returns {string}

(argv=[])

Source from the content-addressed store, hash-verified

383 * @returns {string}
384 */
385function _getCustomConfigPath(argv=[]) {
386 // We'll run as one of the following:
387 // npx simple-git-hooks ./config.js
388 // node path/to/simple-git-hooks/cli.js ./config.js
389 return argv[2] || ''
390}
391
392/**
393 * Gets user-set command either from sources

Callers 2

setHooksFromConfigFunction · 0.85
removeHooksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected