Module: Terraspace::CLI::Help

Extended by:
Help
Included in:
Help
Defined in:
lib/terraspace/cli/help.rb

Instance Method Summary collapse

Instance Method Details

#text(namespaced_command) ⇒ Object



3
4
5
6
7
# File 'lib/terraspace/cli/help.rb', line 3

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