Giter VIP home page Giter VIP logo

hackerearth-cli's Introduction

HackerEath-CLI

Build Status npm version npm awesome

CLI for compiling and running code using HackerEarth API.

Demo

Demo

Install

Run the following command

$ npm install -g hackerearth-cli

API Key

You can get your HackerEarth API Key by visiting HackerEath API page.

Usage

Commands available

$ hackerearth <command>

Commands:
  run      Run code on HackerEarth server
  compile  Compile code on HackerEarth server
  config   Change config file

Options:
  -h, --help  Show help                                      [boolean]

Command run

$ hackerearth run <options>

Options:
  -h, --help      Show help                                  [boolean]
  -s, --source    Source Code file path                     [required]
  -i, --input     Input file path                           [required]
  -l, --language  Language. Change `config` for default.
  -o, --output    Output file path                          [required]

Examples:
  hackerearth run -s A.cpp -i Input00.in -o Output.txt -l CPP11

Command compile

$ hackerearth compile <options>

Options:
  -h, --help      Show help                                  [boolean]
  -s, --source    Source Code file path                     [required]
  -l, --language  Language. Change `config` for default.

Examples:
  hackerearth compile -s A.cpp -l CPP11

Command config

Run $ sudo hackerearth config to change configuration of your installation. This includes default language and API Key.

$ sudo hackerearth config [options]

Options:
  -h, --help  Show help                                      [boolean]
  -l, --list  List language and their code                   [boolean]

Examples:
  sudo hackerearth config -l

Development

Run:

$ git clone https://github.com/manrajgrover/HackerEarth-CLI.git
$ cd HackerEarth-CLI
$ npm link

This will setup a symbolic link to the CLI. Any changes in source files will now be reflected when running the hackerearth command.

To lint your code, run

$ npm run lint

License

MIT © Manraj Singh

hackerearth-cli's People

Contributors

manrajgrover avatar pdehaan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pdehaan

hackerearth-cli's Issues

API is broken on HackerEarth side

Description

Looks like HackerEarth's API is broken for quite a while now. If the problem persists, there would be a need to get in touch with them and make further decisions.

Versions

  • NodeJS version (if applicable): NA
  • HackerEarth CLI version: NA

Error

NA

Expected behaviour

NA

Steps to recreate

NA

People to notify

NA

Integrate Travis

Integrate Travis with the project with following checks:

  • Code lint
  • Test cases

Migrate to HackerEarth v3 API

Description

Looks like HackerEarth v2 API has stopped working as expected and there is a need to move to v3.

Versions

  • NodeJS version (if applicable): NA
  • HackerEarth CLI version: NA

Error

API response is not matching the expected response.

Expected behaviour

NA

Steps to recreate

NA

People to notify

NA

Demos: Move demo gifs to svg based demos

Description

Currently, we make use of gif demos, which is cool, but not as cool as svg-term-cli. Need to explore and move demos to svg based terminal sessions to improve documentation.

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.