appwrite / sdk-generator

Generating SDKs for multiple programming languages and platforms ⚙️
https://appwrite.io
MIT License
258 stars 160 forks source link

feat(cli): Adding report flag #852

Closed byawitz closed 3 weeks ago

byawitz commented 1 month ago

What does this PR do?

Adds the --report flag for printing links for Discord and Github (with per-populated data) for the user when the cli crashes

Test Plan

image

This is the github link, and this is the text being generated.

ℹ Info To report this error you can:
 - Create a support ticket in our Discord server https://appwrite.io/discord
 - Create an issue in our Github
   https://github.com/appwrite/appwrite/issues/new?labels=bug&template=bug.yaml&title=%F0%9F%90%9B+Bug+Report%3A+&actual-behavior=Console%20Crash%0A%60%60%60%0AError%3A%20Creation%20of%20a%20session%20is%20prohibited%20when%20a%20session%20is%20active.%0A%20%20%20%20at%20Client.call%20C%3A%5Claragon%5Cwww%5Cmain%5Csdk-generator%5Cexamples%5Ccli%5Clib%5Cclient.js%3A197%3A13%0A%20%20%20%20at%20process.processTicksAndRejections%20node%3Ainternal%2Fprocess%2Ftask_queues%3A95%3A5%0A%20%20%20%20at%20async%20accountCreateEmailPasswordSession%20C%3A%5Claragon%5Cwww%5Cmain%5Csdk-generator%5Cexamples%5Ccli%5Clib%5Ccommands%5Caccount.js%3A954%3A16%0A%20%20%20%20at%20async%20C%3A%5Claragon%5Cwww%5Cmain%5Csdk-generator%5Cexamples%5Ccli%5Clib%5Ccommands%5Cgeneric.js%3A20%3A9%0A%60%60%60

✗ Error Creation of a session is prohibited when a session is active.
byawitz commented 1 month ago

The updated link