Class: Tapioca::Cli
- Inherits:
-
Thor
- Object
- Thor
- Tapioca::Cli
- Includes:
- Thor::Actions
- Defined in:
- lib/tapioca/cli.rb
Instance Method Summary collapse
- #dsl(*constants) ⇒ Object
- #generate(*gems) ⇒ Object
- #init ⇒ Object
- #require ⇒ Object
- #sync ⇒ Object
- #todo ⇒ Object
Instance Method Details
#dsl(*constants) ⇒ Object
75 76 77 78 79 |
# File 'lib/tapioca/cli.rb', line 75 def dsl(*constants) Tapioca.silence_warnings do generator.build_dsl(constants) end end |
#generate(*gems) ⇒ Object
82 83 84 85 86 |
# File 'lib/tapioca/cli.rb', line 82 def generate(*gems) Tapioca.silence_warnings do generator.build_gem_rbis(gems) end end |
#init ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/tapioca/cli.rb', line 38 def init create_file(Config::SORBET_CONFIG, skip: true) do <<~CONTENT --dir . CONTENT end create_file(Config::DEFAULT_POSTREQUIRE, skip: true) do <<~CONTENT # frozen_string_literal: true # typed: false # Add your extra requires here CONTENT end end |
#require ⇒ Object
56 57 58 59 60 |
# File 'lib/tapioca/cli.rb', line 56 def require Tapioca.silence_warnings do generator.build_requires end end |
#sync ⇒ Object
89 90 91 92 93 |
# File 'lib/tapioca/cli.rb', line 89 def sync Tapioca.silence_warnings do generator.sync_rbis_with_gemfile end end |
#todo ⇒ Object
63 64 65 66 67 |
# File 'lib/tapioca/cli.rb', line 63 def todo Tapioca.silence_warnings do generator.build_todos end end |