Sha256: 2cfaf2842e5623f28d56fea769c74933ea8f406522e5504cb9e90ad25cb8ca9e
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 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 < ::EacRubyUtils::Console::DocoptRunner class LocalProject < ::EacRubyUtils::Console::DocoptRunner 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
avm-tools-0.86.0 | lib/avm/tools/runner/local_project/eac_writings_base0/build_single.rb |
avm-tools-0.85.1 | lib/avm/tools/runner/local_project/eac_writings_base0/build_single.rb |