Class: Publication::CLI

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

Instance Method Summary collapse

Instance Method Details

#initObject



7
8
9
# File 'lib/publication/cli.rb', line 7

def init
  Publication::Setup.init
end

#publishObject



22
23
24
25
# File 'lib/publication/cli.rb', line 22

def publish
  opts = options.deep_symbolize_keys
  Publication::Publisher.new(**opts).publish
end

#spellcheckObject



12
13
14
# File 'lib/publication/cli.rb', line 12

def spellcheck
  Publication::Spellchecker.check
end