* 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=[])
| 308 | * @returns {string} |
| 309 | */ |
| 310 | function _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 |
no outgoing calls
no test coverage detected
searching dependent graphs…