j178 / leetgo

Best LeetCode friend for geek. :snowboarder:
MIT License
527 stars 33 forks source link

feat: add json output for info command #284

Closed whjum closed 4 months ago

whjum commented 4 months ago

This pull request should add the requested feature mentioned in issue #283.

I am not sure whether there will be more than one support formats so I use Enum instead of plain string. Feel free to revert or modify the type to the one fits best for the need.

Thanks for the fast response :)

j178 commented 4 months ago

Hi, thanks for the PR —it's looking great!

I've gone ahead and refactored it a bit by organizing various formatting codes into dedicated functions. I hope that's okay with you. Thanks again!

whjum commented 4 months ago

Looks clean and neat. Thank you for reviewing :+1: