Class: LatexFlow::CLI::BibTeX

Inherits:
Generic
  • Object
show all
Defined in:
lib/latex-flow/cli/bibtex.rb

Instance Method Summary collapse

Methods inherited from Generic

#initialize

Constructor Details

This class inherits a constructor from LatexFlow::CLI::Generic

Instance Method Details

#runObject



7
8
9
10
11
12
# File 'lib/latex-flow/cli/bibtex.rb', line 7

def run
  t = Tools::BibTeX.new("#{ENV.fetch('BIBTEX', 'bibtex')} #{@options[:target]}")
  t.run
  $stderr.puts t.messages(color:@options[:color]) if @options[:verbose]
  exit(false) if !t.success?
end