Class: AwesomeAnnotate::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/awesome_annotate/cli.rb

Instance Method Summary collapse

Instance Method Details

#model(model_name) ⇒ Object



18
19
20
# File 'lib/awesome_annotate/cli.rb', line 18

def model(model_name)
  AwesomeAnnotate::Model.new.annotate(model_name)
end


13
14
15
# File 'lib/awesome_annotate/cli.rb', line 13

def print_version
  say AwesomeAnnotate::VERSION
end

#routesObject



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

def routes
  AwesomeAnnotate::Route.new.annotate
end