Class: Autoproj::CLI::MainDoc

Inherits:
Thor
  • Object
show all
Defined in:
lib/autoproj/cli/main_doc.rb

Instance Method Summary collapse

Instance Method Details

#disable(*packages) ⇒ Object



41
42
43
44
45
46
47
48
# 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) ⇒ Object



29
30
31
32
33
34
35
36
# 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) ⇒ Object



75
76
77
78
79
80
81
82
83
84
# 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) ⇒ Object



53
54
55
56
57
58
59
60
# 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