MCPcopy Create free account
hub / github.com/subquery/subql / Init

Class Init

packages/cli/src/commands/init.ts:217–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217export 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
233const nonInteractiveInitInputs = initInputs.required({name: true});

Callers

nothing calls this directly

Calls 2

zodToFlagsFunction · 0.90
zodToArgsFunction · 0.90

Tested by

no test coverage detected