| 215 | } |
| 216 | |
| 217 | export default class Init extends Command { |
| 218 | static description = 'Initialize a SubQuery project from a template'; |
| 219 | |
| 220 | static flags = zodToFlags(initInputs.omit({name: true})); |
| 221 | static args = zodToArgs(initInputs.pick({name: true})); |
| 222 | |
| 223 | async run(): Promise<void> { |
| 224 | const {args, flags} = await this.parse(Init); |
| 225 | |
| 226 | await initAdapter(process.cwd(), {...flags, ...args}, commandLogger(this), makeCLIPrompt()); |
| 227 | |
| 228 | this.log('Project successfully created!'); |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | // Used when MCP doesn't support elicitInput |
| 233 | const nonInteractiveInitInputs = initInputs.required({name: true}); |
nothing calls this directly
no test coverage detected