* 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=[])
| 383 | * @returns {string} |
| 384 | */ |
| 385 | function _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 |
no outgoing calls
no test coverage detected