UNPKG

@bscotch/stitch

Version:

Stitch: The GameMaker Studio 2 Asset Pipeline Development Kit.

32 lines 967 B
#!/usr/bin/env node import { default as inquirer } from 'inquirer'; import { StitchProject } from '../index.js'; import { listIssueProjectChoices, openPaths } from './lib/issuesLib.js'; const answers = await inquirer.prompt([ { type: 'list', name: 'targetProject', message: 'Which Issue do you want to submit?', async choices() { return await listIssueProjectChoices(); }, }, ]); if (!answers.targetProject) { process.exit(0); } const issueProject = await StitchProject.load({ projectPath: answers.targetProject, dangerouslyAllowDirtyWorkingDir: true, readOnly: true, }); await issueProject.issue.collectLogs(); const report = await issueProject.issue.compileReport(); await openPaths([ { path: issueProject.issue.attachmentsDirectory.toString({ format: 'win32' }), app: { name: 'explorer' }, }, report.mailTo, ]); //# sourceMappingURL=stitch-issues-submit.js.map