Class: Mnogootex::CLI

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

Instance Method Summary collapse

Instance Method Details

#build(*args) ⇒ Object



21
22
23
# File 'lib/mnogootex/cli.rb', line 21

def build(*args)
  execute_latexmk(*args, default_flags: ['-interaction=nonstopmode'])
end

#clean(*args) ⇒ Object



33
34
35
# File 'lib/mnogootex/cli.rb', line 33

def clean(*args)
  execute_latexmk(*args, default_flags: ['-c'])
end

#clobber(*args) ⇒ Object



39
40
41
# File 'lib/mnogootex/cli.rb', line 39

def clobber(*args)
  execute_latexmk(*args, default_flags: ['-C'])
end

#exec(*args) ⇒ Object



15
16
17
# File 'lib/mnogootex/cli.rb', line 15

def exec(*args)
  execute_latexmk(*args, default_flags: [])
end

#help(*args) ⇒ Object



45
46
47
48
49
50
51
52
# File 'lib/mnogootex/cli.rb', line 45

def help(*args)
  super

  puts <<~EXTRA_HELP
    JOBs are document class names. The default is the whole list in your configuration file.
    FLAGs are options passed to latexmk. Please refer to `latexmk -help` for details.
  EXTRA_HELP
end

#open(*args) ⇒ Object



27
28
29
# File 'lib/mnogootex/cli.rb', line 27

def open(*args)
  execute_latexmk(*args, default_flags: ['-interaction=nonstopmode', '-pv'])
end