()
| 12 | @Module({}) |
| 13 | export class ConfigureModule { |
| 14 | static async getInstance(): Promise<{ |
| 15 | nodeConfig: NodeConfig; |
| 16 | project: SubqueryProject; |
| 17 | }> { |
| 18 | const { argv } = yargsOptions; |
| 19 | return registerApp<SubqueryProject>( |
| 20 | argv, |
| 21 | createSubQueryProject, |
| 22 | yargsOptions.showHelp.bind(yargsOptions), |
| 23 | pjson, |
| 24 | ); |
| 25 | } |
| 26 | static async register(): Promise<DynamicModule> { |
| 27 | const { nodeConfig, project } = await ConfigureModule.getInstance(); |
| 28 |
no test coverage detected