Sha256: 228a0803ad1ed62cd80a81b58a10ded7840c4b9f7eebc4682009db0fb458c334
Contents?: true
Size: 1.05 KB
Versions: 13
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true require 'avm/eac_writings_base0/project_build' require 'eac_cli/core_ext' require 'eac_ruby_utils/console/docopt_runner' module Avm module Tools class Runner class LocalProject class EacWritingsBase0 class BuildSingle runner_with :help do arg_opt '-s', '--source-dir', 'Write .tex source code in specific directory.' arg_opt '-f', '--output-file', 'Output to specific file.' arg_opt '-c', '--chapter', 'Write only the chapter <chapter>.' bool_opt '-o', '--open', 'Open the file after build.' end def run runner_context.call(:project_banner) infov 'Build options', build_options ::Avm::EacWritingsBase0::ProjectBuild.new(runner_context.call(:project), parsed) end private def build_options parsed.slice_fetch(:output_file, :open, :chapter, :source_dir) end end end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems