Class: Mkwebook::Cli

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.main(args) ⇒ Object



6
7
8
# File 'lib/mkwebook/cli.rb', line 6

def main(args)
  start(args)
end

Instance Method Details

#docsetObject



37
38
39
40
41
42
43
# File 'lib/mkwebook/cli.rb', line 37

def docset
  if options[:list]
    Mkwebook::App.new(options).list_entry_types
  else
    Mkwebook::App.new(options).make_docset
  end
end

#downloadObject



30
31
32
# File 'lib/mkwebook/cli.rb', line 30

def download
  Mkwebook::App.new(options).download
end

#download_indexObject



21
22
23
# File 'lib/mkwebook/cli.rb', line 21

def download_index
  Mkwebook::App.new(options).download_index
end

#initObject



15
16
17
# File 'lib/mkwebook/cli.rb', line 15

def init
  Mkwebook::App.new(options).create_config
end

#versionObject



46
47
48
# File 'lib/mkwebook/cli.rb', line 46

def version
  puts Mkwebook::VERSION
end