Sha256: d2f5b7a5527d0f4288095fb11c0c95168237437c9b7b36146d54584d10d3e571

Contents?: true

Size: 507 Bytes

Versions: 27

Compression:

Stored size: 507 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

27 entries across 27 versions & 6 rubygems

Version Path
commander-4.5.2 lib/commander/help_formatters/base.rb
commander-4.5.1 lib/commander/help_formatters/base.rb
commander-4.5.0 lib/commander/help_formatters/base.rb
commander-openflighthpc-1.0.0 lib/commander/help_formatters/base.rb
commander-openflighthpc-1.0.0.pre.alpha1 lib/commander/help_formatters/base.rb
commander-4.4.7 lib/commander/help_formatters/base.rb
murano-cli-commander-4.4.10 lib/murano-cli-commander/help_formatters/base.rb
commander-4.4.6 lib/commander/help_formatters/base.rb
commander-4.4.5 lib/commander/help_formatters/base.rb
commander-fastlane-4.4.6 lib/commander/help_formatters/base.rb
commander-4.4.4 lib/commander/help_formatters/base.rb
commander-fastlane-4.4.5 lib/commander/help_formatters/base.rb
commander-fastlane-4.4.4 lib/commander/help_formatters/base.rb
commander-fastlane-4.4.3 lib/commander/help_formatters/base.rb
commander-4.4.3 lib/commander/help_formatters/base.rb
commander-4.4.2 lib/commander/help_formatters/base.rb
commander-4.4.1 lib/commander/help_formatters/base.rb
simple_commander-0.0.1 lib/simple_commander/help_formatters/base.rb
commander-4.4.0 lib/commander/help_formatters/base.rb
commander-4.3.8 lib/commander/help_formatters/base.rb