Class: Marksman::CLI

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

Instance Method Summary collapse

Instance Method Details

#generate(file, target = 'public') ⇒ Object



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

def generate(file, target = 'public')
  Marksman::Writer.new(file, target, options[:theme]).generate
end

#watch(file, target = 'public') ⇒ Object



24
25
26
# File 'lib/marksman/cli.rb', line 24

def watch(file, target = 'public')
  Marksman::Watcher.new(file, target, options[:theme]).watch
end