Class: TP::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/tp/cli.rb

Instance Method Summary collapse

Instance Method Details

#pdf(filename, output = nil) ⇒ Object



23
24
25
# File 'lib/tp/cli.rb', line 23

def pdf(filename, output = nil)
  TP::Publisher::PDF.new(filename, output).publish
end

#present(filename) ⇒ Object



18
19
20
# File 'lib/tp/cli.rb', line 18

def present(filename)
  TP::Presenter.new(File.read(filename)).present
end

#usageObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/tp/cli.rb', line 6

def usage
  puts [
    "Terminal Presenter #{TP::VERSION}",
    "https://github.com/justincampbell/tp"
  ].join("\n")

  puts "\n"

  help
end