Sha256: c853368c605caba4e0cfe3bf1ed83692daecaffb3816d5a795607ad03c2cdd40

Contents?: true

Size: 246 Bytes

Versions: 10

Compression:

Stored size: 246 Bytes

Contents

module CliTemplate::Help
  class << self
    def text(namespaced_command)
      path = namespaced_command.to_s.gsub(':','/')
      path = File.expand_path("../help/#{path}.md", __FILE__)
      IO.read(path) if File.exist?(path)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cli-template-4.0.2 lib/cli_template/help.rb
cli-template-4.0.1 lib/cli_template/help.rb
cli-template-4.0.0 lib/cli_template/help.rb
cli-template-3.5.1 lib/cli-template/help.rb
cli-template-3.5.0 lib/cli-template/help.rb
cli-template-3.4.0 lib/cli-template/help.rb
cli-template-3.3.0 lib/cli-template/help.rb
cli-template-3.2.0 lib/cli-template/help.rb
cli-template-3.1.0 lib/cli-template/help.rb
cli-template-3.0.0 lib/cli-template/help.rb