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(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 ::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) ::Builder.new(type, ).build(uid, ) end |
#format(path) ⇒ Object
21 22 23 |
# File 'lib/hasmenu.rb', line 21 def format(path) ::Formatter.new().format(path) end |
#report(type) ⇒ Object
50 51 52 |
# File 'lib/hasmenu.rb', line 50 def report(type) ::Reporter.new(type, ).report end |
#spellcheck(path) ⇒ Object
29 30 31 |
# File 'lib/hasmenu.rb', line 29 def spellcheck(path) ::SpellChecker.new().check(path) end |
#validate(type, path) ⇒ Object
36 37 38 |
# File 'lib/hasmenu.rb', line 36 def validate(type, path) ::Validator.new(type, ).perform(path) end |