Sha256: 80a51f270a0b57db591eeb2a6eceaae3fe3625ff476ac433893c46276377ae79

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

module Tr3llo
  module Presenter
    class HelpPresenter
      def initialize(interface)
        @interface = interface
      end

      def print!
        interface.print_frame do
          interface.puts menu_text
        end
      end

      private

      attr_reader :interface

      def menu_text
        %q{
    3llo - CLI for Trello

    Usage:
    board list                  - Show list of board
    board select                - Select board
    card list                   - Show list of cards grouped by list
    card list mine              - Show list of my cards
    card add                    - Create a card
    card show <card_id>         - Show card information
    card move <card_id>         - Move card to a list
    card self-assign <card_id>  - Self-assign a card
    card assign <card_id>       - Assign a user to a card
    card comments <card_id>     - Load recent comments of a card
    card comment <card_id>      - Add a comment to a card
    list list                   - Show all lists
    list cards <list_id>        - Show all cards in list
    help                        - Show help menu
    exit                        - Exit program
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
3llo-0.1.12 lib/3llo/presenter/help.rb