| 34 | const langDisplayNames = targetLanguages.all.map(r => r.displayName).join(", "); |
| 35 | |
| 36 | export interface CLIOptions { |
| 37 | lang: string; |
| 38 | topLevel: string; |
| 39 | src: string[]; |
| 40 | srcUrls?: string; |
| 41 | srcLang: string; |
| 42 | graphqlSchema?: string; |
| 43 | graphqlIntrospect?: string; |
| 44 | graphqlServerHeader?: string[]; |
| 45 | out?: string; |
| 46 | |
| 47 | noMaps: boolean; |
| 48 | noEnums: boolean; |
| 49 | alphabetizeProperties: boolean; |
| 50 | noCombineClasses: boolean; |
| 51 | noRender: boolean; |
| 52 | |
| 53 | rendererOptions: RendererOptions; |
| 54 | |
| 55 | help: boolean; |
| 56 | quiet: boolean; |
| 57 | } |
| 58 | |
| 59 | async function readableFromFileOrUrl(fileOrUrl: string): Promise<Readable> { |
| 60 | if (fs.existsSync(fileOrUrl)) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…