Class: Hasmenu::Cli
- Inherits:
-
Thor
- Object
- Thor
- Hasmenu::Cli
- Defined in:
- lib/hasmenu.rb
Instance Method Summary collapse
- #__print_version ⇒ Object
- #build(type, uid = nil, menu_uid = nil) ⇒ Object
- #format(type, path) ⇒ Object
- #report(type) ⇒ Object
- #spellcheck(path) ⇒ Object
- #validate(type, path) ⇒ Object
Instance Method Details
#__print_version ⇒ Object
15 16 17 |
# File 'lib/hasmenu.rb', line 15 def __print_version puts Hasmenu::VERSION end |
#build(type, uid = nil, menu_uid = nil) ⇒ Object
43 44 45 |
# File 'lib/hasmenu.rb', line 43 def build(type, uid = nil, = nil) Hasmenu::Builder.new(type, ).build(uid, ) end |
#format(type, path) ⇒ Object
21 22 23 |
# File 'lib/hasmenu.rb', line 21 def format(type, path) Hasmenu::Formatter.new(type, ).format(path) end |
#report(type) ⇒ Object
50 51 52 |
# File 'lib/hasmenu.rb', line 50 def report(type) Hasmenu::Reporter.new(type, ).report end |
#spellcheck(path) ⇒ Object
29 30 31 |
# File 'lib/hasmenu.rb', line 29 def spellcheck(path) Hasmenu::SpellChecker.new().check(path) end |