akamch / cmdchallenge

A repository for one-line bash commands

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CMD Challenge

This repo holds the challenges for cmdchallenge.com

 _____ _____ ____     _____ _____ _____ __    __    _____ _____ _____ _____ 
|     |     |    \   |     |  |  |  _  |  |  |  |  |   __|   | |   __|   __|
|   --| | | |  |  |  |   --|     |     |  |__|  |__|   __| | | |  |  |   __|
|_____|_|_|_|____/   |_____|__|__|__|__|_____|_____|_____|_|___|_____|_____|

Contribute

  • Add a new entry to challenges.yml.
    • Pick a unique slug name.
    • Type a description.
    • Add directory and supporting files for the challenge in the var/challenges dir.
    • Add an example solution.
    • Add expected output or tests for the verification (see other challenges for examples examples).
  • Submit a pull request

Installation

  • Install docker on your machine
  • pip install -r requirements.txt

Testing

  • make test

Assuming you have docker installed running make test will create a new docker image, load it and run all tests.

  • ./bin/test_challenges <test_name> Test a single challenge using the currently built docker container or all challenges (faster than make test).

Bugs / Suggestions

About

A repository for one-line bash commands

License:MIT License


Languages

Language:Python 82.3%Language:Roff 15.7%Language:Makefile 2.0%