Sha256: 6d18c375450e9bc74fd939e3531d65fc023a6021f893b2bbf28bfa2503ce1dd4

Contents?: true

Size: 518 Bytes

Versions: 11

Compression:

Stored size: 518 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(opts = {})
        'Implement global help here'
      end

      def render_command(command)
        "Implement help for #{command.name} here"
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
commander-openflighthpc-2.2.0 lib/commander/help_formatters/base.rb
commander-openflighthpc-2.1.2 lib/commander/help_formatters/base.rb
commander-openflighthpc-2.1.1 lib/commander/help_formatters/base.rb
commander-openflighthpc-2.1.0 lib/commander/help_formatters/base.rb
commander-openflighthpc-2.0.2 lib/commander/help_formatters/base.rb
commander-openflighthpc-2.0.1 lib/commander/help_formatters/base.rb
commander-openflighthpc-2.0.0 lib/commander/help_formatters/base.rb
commander-openflighthpc-1.2.0 lib/commander/help_formatters/base.rb
commander-openflighthpc-1.1.2 lib/commander/help_formatters/base.rb
commander-openflighthpc-1.1.1 lib/commander/help_formatters/base.rb
commander-openflighthpc-1.1.0 lib/commander/help_formatters/base.rb