ethanhs / cce

commandline compiler explorer - use https://godbolt.org from your terminal!
MIT License
196 stars 14 forks source link

Shorten: '--shorten' uses the shorten-API call. #9

Closed siedentop closed 5 years ago

siedentop commented 5 years ago

This has the benefit that even very large source code can be opened in compiler explorer (useful for local instances of compiler explorer on real projects). Additionally, shorten which generates a shareable link, might be useful to some users.

siedentop commented 5 years ago

@ethanhs , I think this is ready now.

Shorten and compile are still two different functions, which I am not extremely happy about. It would feel more natural to have shorten just being an additional flag to the compile function. However, since the Compiler Explorer API is different for the two options, this looks hard to achieve for me right now.