cheat.sh icon indicating copy to clipboard operation
cheat.sh copied to clipboard

Architecture details of cheat.sh

Open rahulunair opened this issue 5 years ago • 2 comments
trafficstars

Is there any document describing a code walkthrough and details of the architecture choices of cheat.sh?

rahulunair avatar Aug 14 '20 16:08 rahulunair

Not really. You are asking about something particular, or a high-level overview would be fine?

chubin avatar Oct 12 '20 15:10 chubin

A particular question I have is about missing /bin/upstream. Without it, local server tries to contact https://cheat.sh which is giving 500 errors that are impossible to debug, For example the query https://cheat.sh/g++%20/file

Because bin/upstream is absent, the lookup adapter is executed always with no fallback https://github.com/chubin/cheat.sh/blob/0ff765a0a3905fbb071a47b83be4d0e575ad69a0/lib/adapter/question.py#L62

abitrolly avatar Nov 13 '21 14:11 abitrolly