(argv)
| 14 | const { determine } = require('./../../lib/helpers/envResolution') |
| 15 | |
| 16 | function inferCommandArgsFromProcessArgv (argv) { |
| 17 | const runIndex = argv.indexOf('run') |
| 18 | if (runIndex === -1) return [] |
| 19 | |
| 20 | const args = argv.slice(runIndex + 1) |
| 21 | |
| 22 | const separatorIndex = args.indexOf('--') |
| 23 | if (separatorIndex !== -1) return args.slice(separatorIndex + 1) |
| 24 | |
| 25 | for (let i = 0; i < args.length; i++) { |
| 26 | if (args[i] === '-f' || args[i] === '--env-file') { |
| 27 | i++ |
| 28 | continue |
| 29 | } |
| 30 | |
| 31 | if (args[i].startsWith('-')) continue |
| 32 | |
| 33 | return args.slice(i) |
| 34 | } |
| 35 | |
| 36 | return [] |
| 37 | } |
| 38 | |
| 39 | function uniqueInjectedKeys (processedEnvs) { |
| 40 | const result = new Set() |
no outgoing calls
no test coverage detected
searching dependent graphs…