Coder Social home page Coder Social logo

coding-interview-cli's Introduction

coding-interview CLI

My goal is to implement a CLI tool like leetcode-cli. And my teammate(@曾德勤 ) will wrap it to a Virsual Studio Code extension like this.

install

clone this repo, install rust and cargo, then build or run.

# install cargo and rust for linux or macOS
curl -sSf https://static.rust-lang.org/rustup.sh | sh

git clone https://github.com/xiebei1108/coding-interview-cli
cd coding-interview-cli
cargo build --release
sudo cp ./target/release/cinterview /usr/local/bin

commands

login or not login

Login mode is to be implemented

There are two mode: login or not login. If you login, the submit history will be based on the remote history of you acount. And if not, it's based on your local log.

The default mode is not login.

# change to login mode
cinterview login

# then input username
# and input password

init && list

# download problem details from network. And coding templates will be generated in the current directory.
cinterview init

# get current problems status
cinterview list

For example: ./pics/1550304472530.jpg

submit

# -e means exams mode
# the first arg after `submit` should be the suffix of the lanugage in which 
# you're going to submit the code.
# includes: cc, py, java, php, js, cs ...

cinterview submit -e cc 1 2 3

# -t means test mode
cinterview submit -t java 12

The difference between these two mode is whether you can get the error message if your code is not correct. Default it test mode.

clean

Clean local problems data.

cinterview clean

Todo

  • support all languages
  • more readable output
  • login
  • generate submit code from test code automatically
  • vscode extension

coding-interview-cli's People

Contributors

dashahe avatar

Stargazers

GuWen avatar GUAN avatar Ke Zhang avatar Bofan Li avatar 阿超 avatar Rin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.