Sha256: 5171825613bef746d0c80c57ef80ff0fd9df1951f137249ca2bf7320ea01917a

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

module Tr3llo
  module Command
    module Card
      class InvalidCommand
        def execute
          interface.print_frame do
            interface.puts("Invalid command".red)
            interface.puts(menu_text)
          end
        end

        private

        def menu_text
          %q{
    Available `card` commands

    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
          }
        end

        def container
          $container
        end

        def interface
          container.resolve(:interface)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
3llo-0.1.12 lib/3llo/commands/card/invalid.rb