Sha256: c814afee7c66e56c6d9c7dcc85ef2c02501dffafadecfc89dd1dd983387d23c3
Contents?: true
Size: 1.19 KB
Versions: 16
Compression:
Stored size: 1.19 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 < ::EacRubyUtils::Console::DocoptRunner class BuildSingle runner_with runner_definition 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
16 entries across 16 versions & 1 rubygems