Class: LMK::CLI

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

Instance Method Summary collapse

Instance Method Details

#configObject



12
13
14
# File 'lib/lmk/cli.rb', line 12

def config
  Kernel.puts Config.from_file.debug
end

#debug(*command) ⇒ Object



17
18
19
20
21
22
23
24
25
26
# File 'lib/lmk/cli.rb', line 17

def debug(*command)
  command = command.join ' '
  cmd = ShellCommand.new(command).tap do |c|
    c.html_url = "http://gist.example.com"
  end
  puts "concise"
  puts cmd.concise_output
  puts "\n\nfull"
  puts cmd.full_output
end

#exec(*command) ⇒ Object



6
7
8
9
# File 'lib/lmk/cli.rb', line 6

def exec(*command)
  command = command.join ' '
  Runner.run(command, options)
end