(name: string)
| 36 | const args = process.argv.slice(2); |
| 37 | const hasArg = (name: string): boolean => args.includes(name); |
| 38 | const argValue = (name: string): string | undefined => { |
| 39 | const index = args.indexOf(name); |
| 40 | return index >= 0 ? args[index + 1] : undefined; |
| 41 | }; |
| 42 | |
| 43 | const apply = hasArg("--apply"); |
| 44 | const inputJson = argValue("--input-json"); |
no outgoing calls
no test coverage detected