Another Leetcode CLI: Unix flavor, searchable, HTML reports, syntax highlight

1 points by chenpengcheng ↗ HN
GitHub: https://github.com/chenpengcheng/cli

Screencast: https://asciinema.org/a/GSDeq9orT1hNChL0T9AenbJin

Commands (with tab-completion):

  login -- login into LeetCode.com

  su <session> -- switch session or create new ones

  chmod < language > -- switch language

  ls -- list tags, problems or problem description

  / < keyword > -- search by keyword, such as airbnb and palindrome

  cd < tag | problem | .. > -- change tag/problem

  pull -- pull latest solution/boilerplate from LeetCode.com

  cat -- show sample test cases

  check -- sanity-check the solution with sample test cases

  push  -- submit the solution for full testing

  cheat < number of examples > -- show best solutions

  clear -- clear screen

  limit < number of problems > -- limit the max # of problems

  print <keyword> -- generate report with code highlighting

0 comments

[ 2.9 ms ] story [ 7.0 ms ] thread

No comments yet.