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

Function _getCustomConfigPath

simple-git-hooks.js:310–315  ·  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

308 * @returns {string}
309 */
310function _getCustomConfigPath(argv=[]) {
311 // We'll run as one of the following:
312 // npx simple-git-hooks ./config.js
313 // node path/to/simple-git-hooks/cli.js ./config.js
314 return argv[2] || ''
315}
316
317/**
318 * 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…