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.2.1 lib/commander/help_formatters/base.rb
crishoj-commander-3.3.0 lib/commander/help_formatters/base.rb
ktec-commander-3.3.1 lib/commander/help_formatters/base.rb
visionmedia-commander-3.0.0 lib/commander/help_formatters/base.rb
visionmedia-commander-3.0.1 lib/commander/help_formatters/base.rb
visionmedia-commander-3.0.2 lib/commander/help_formatters/base.rb
visionmedia-commander-3.0.3 lib/commander/help_formatters/base.rb
visionmedia-commander-3.1.0 lib/commander/help_formatters/base.rb
visionmedia-commander-3.1.1 lib/commander/help_formatters/base.rb
visionmedia-commander-3.1.2 lib/commander/help_formatters/base.rb
visionmedia-commander-3.1.4 lib/commander/help_formatters/base.rb
visionmedia-commander-3.1.5 lib/commander/help_formatters/base.rb
visionmedia-commander-3.1.6 lib/commander/help_formatters/base.rb
visionmedia-commander-3.1.7 lib/commander/help_formatters/base.rb
visionmedia-commander-3.1.8 lib/commander/help_formatters/base.rb
visionmedia-commander-3.2.0 lib/commander/help_formatters/base.rb
visionmedia-commander-3.2.2 lib/commander/help_formatters/base.rb
visionmedia-commander-3.2.3 lib/commander/help_formatters/base.rb
visionmedia-commander-3.2.4 lib/commander/help_formatters/base.rb
visionmedia-commander-3.2.5 lib/commander/help_formatters/base.rb