Knossos CLI
A command line companion to the knossos Ruby gem for generating mazes.
Installation
Install globally with:
~$ gem install knossoscliUsage
The Knossos CLI actually comprises a suite of commands similar to familiar tools
like git and bundler. You can see a summary of the available sub-commands by
invoking:
~$ knossos helpMore detailed documentation for each sub-command is available with, for example:
~$ knossos help carveGenerate a maze in your terminal:
~$ knossos carve --rows=5 --columns=7 --algorithm=RecursiveBacktrackerContributing
Bug reports and pull requests are welcome on GitHub. Knossos provides a safe, welcoming space for collaboration. Everyone contributing to our project—including the codebase, issue trackers, chat, email, social media and the like—is expected to uphold our Code of Conduct.
Setting Up
Fork the project on GitHub and make a local clone. Install dependencies, and run the tests:
~/knossoscli$ bin/setup
~/knossoscli$ bundle exec rake rspecRunning the Code
Run the command itself with:
~/knossoscli$ bundle exec exe/knossosOr, you can experiment directly with the code interactively using:
~/knossoscli$ bin/consolePublishing
To release a new version of the library, first increment the version number in
lib/knossoscli/version.rb following Semantic Versioning policy, and
update CHANGELOG.md. Commit your work, and finally, run:
# Create a git tag, push commits and tags, and publish to rubygems.org
~/knossoscli$ bundle exec rake releaseLicense
This gem is available as open source under the terms of the MIT License.
This file is composed with GitHub Flavored Markdown.