Coder Social home page Coder Social logo

rtblanco / hero_index Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 58 KB

This Ruby gem is a CLI that allows the user to be able to see information about their favorite heroes and also be able to compare which hero is stronger.

License: MIT License

Ruby 98.98% Shell 1.02%
cli heroes flatiron-cli

hero_index's Introduction

Hero Index

This Ruby gem is a CLI that allows the user to be able to see information about their favorite heroes and also be able to compare which hero is stronger.

Installation

Add this line to your application's Gemfile:

gem 'hero_index'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install hero_index

Usage

After proper installation of the gem, simply run:

$ hero-index

This will prompt you to choose to either search with and ID or a Name:

Search Hero by Name or hero ID?

Once you have entered a hero this will prompt a menu with choices that lead to further information about the chosen hero

Search Hero by Name or hero ID?
$ name

Looking with name!
Please enter the name.
$ robin

Found Red Robin!
What would you like to know about Red Robin
    (1) Main Information
    (2) Physical Traits
    (3) Power Levels
    (4) Who Is Stronger (pits current hero verser another)

    -------------------------------------------------------
    (back) To go back
    (quit) To quit program
$ 1
  • Once you have made a selection and would like to make another you simply enter its corresponding number
  • You can close the CLI anytime by inputting quit

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hero_index. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the HeroIndex project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the code of conduct.

hero_index's People

Contributors

rtblanco avatar

Stargazers

 avatar

Watchers

 avatar  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.