Sha256: 6af76e541703f5bd7dcb08493de8d2103b63bbf4a4a940569adff9ee9798e966

Contents?: true

Size: 471 Bytes

Versions: 45

Compression:

Stored size: 471 Bytes

Contents

module Commander
  
  ##
  # = Help Formatter
  #
  # Commander's help formatters control the output when
  # either the help command, or --help switch are called.
  # The default formatter is Commander::HelpFormatter::Terminal.
  
  module HelpFormatter
    class Base 
      def initialize runner; @runner = runner  end
      def render; 'Implement global help here' end
      def render_command command; "Implement help for #{command.name} here" end
    end
  end
end

Version data entries

45 entries across 45 versions & 6 rubygems

Version Path
commander-4.0.3 lib/commander/help_formatters/base.rb
commander-4.0.2 lib/commander/help_formatters/base.rb
commander-4.0.1 lib/commander/help_formatters/base.rb
commander-4.0.0 lib/commander/help_formatters/base.rb
commander-3.3.0 lib/commander/help_formatters/base.rb