class Autoproj::CLI::MainDoc

Public Instance Methods

disable(*packages) click to toggle source
# File lib/autoproj/cli/main_doc.rb, line 41
def disable(*packages)
    require "autoproj/cli/doc"
    report(silent: true) do
        cli = Doc.new
        args = cli.validate_options(packages, options)
        cli.disable(*args)
    end
end
enable(*packages) click to toggle source
# File lib/autoproj/cli/main_doc.rb, line 29
def enable(*packages)
    require "autoproj/cli/doc"
    report(silent: true) do
        cli = Doc.new
        args = cli.validate_options(packages, options)
        cli.enable(*args)
    end
end
exec(*packages) click to toggle source
# File lib/autoproj/cli/main_doc.rb, line 75
def exec(*packages)
    require "autoproj/cli/doc"
    options = self.options.merge(parent_options)
    report do |extra_options|
        cli = Doc.new
        options.delete(:tool)
        args = cli.validate_options(packages, options.merge(extra_options))
        cli.run(*args)
    end
end
list(*packages) click to toggle source
# File lib/autoproj/cli/main_doc.rb, line 53
def list(*packages)
    require "autoproj/cli/doc"
    report(silent: true) do
        cli = Doc.new
        args = cli.validate_options(packages, options)
        cli.list(*args)
    end
end
report(report_options = Hash.new) { |extra_options| ... } click to toggle source
# File lib/autoproj/cli/main_doc.rb, line 9
def report(report_options = Hash.new)
    options = self.options.merge(parent_options)
    extra_options = Hash.new
    if options[:tool]
        Autobuild::Subprocess.transparent_mode = true
        Autobuild.silent = true
        Autobuild.color = false
        report_options[:silent] = true
        report_options[:on_package_failures] = :exit_silent
        extra_options[:silent] = true
    end
    Autoproj.report(**Hash[debug: options[:debug]].merge(report_options)) do
        yield(extra_options)
    end
end