Codewars command-line tool
Installation
- Make sure that Ruby is installed
ruby -v
- Run
gem install codewars
Usage
Run codewars help
to see all available commands.
- Set TOKEN from https://www.codewars.com/users/edit
codewars config key your-secret-key
- Set a language
codewars config language ruby|javascript|etc
- Choose a kata
codewars train
- Start solving
codewars train name-of-kata
- Open a folder
cd name-of-kata/language/
- Create tests according on description.md
- Make the tests green
- Attempt the solution on the server
codewars attempt
- Refactor your code
- Finalize
codewars finalize
Problems
Not sure for purpose or not but API sometimes caches a request for the next kata. To solve the problem go to the link http://www.codewars.com/dashboard in your browser.
Contributing
Bug reports, pull requests and ideas are welcome!
Steps to make a pull request:
- Fork it ( https://github.com/evmorov/codewars/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Make changes
- Add tests for it
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request