Class: Uffizzi::Cli::Common

Inherits:
Object
  • Object
show all
Defined in:
lib/uffizzi/cli/common.rb

Class Method Summary collapse

Class Method Details

.show_manual(command_name) ⇒ Object



6
7
8
9
10
# File 'lib/uffizzi/cli/common.rb', line 6

def show_manual(command_name)
  manual_doc_path = File.join(Uffizzi.root, "man/#{command_name}.ronn")

  Uffizzi.ui.say(File.read(manual_doc_path))
end