Class: RubocopTodoCorrector::Cli
- Inherits:
-
Thor
- Object
- Thor
- RubocopTodoCorrector::Cli
- Defined in:
- lib/rubocop_todo_corrector/cli.rb
Overview
Provide CLI sub-commands.
Instance Method Summary collapse
- #apply ⇒ Object
- #bundle ⇒ Object
- #clean ⇒ Object
- #correct ⇒ Object
- #describe ⇒ Object
- #generate ⇒ Object
- #ignore ⇒ Object
- #pick ⇒ Object
- #remove ⇒ Object
Instance Method Details
#apply ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/rubocop_todo_corrector/cli.rb', line 19 def apply Commands::Apply.call( cop_name: [:cop_name], only_safe: [:only_safe], rubocop_todo_path: '.rubocop_todo.yml', temporary_gemfile_path: 'tmp/Gemfile_rubocop_todo_corrector.rb' ) end |
#bundle ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/rubocop_todo_corrector/cli.rb', line 29 def bundle Commands::Bundle.call( rubocop_configuration_path: '.rubocop.yml', gemfile_lock_path: 'Gemfile.lock', temporary_gemfile_path: 'tmp/Gemfile_rubocop_todo_corrector.rb' ) end |
#clean ⇒ Object
38 39 40 41 42 |
# File 'lib/rubocop_todo_corrector/cli.rb', line 38 def clean Commands::Clean.call( temporary_gemfile_path: 'tmp/Gemfile_rubocop_todo_corrector.rb' ) end |
#correct ⇒ Object
50 51 52 53 54 55 |
# File 'lib/rubocop_todo_corrector/cli.rb', line 50 def correct Commands::Correct.call( only_safe: [:only_safe], temporary_gemfile_path: 'tmp/Gemfile_rubocop_todo_corrector.rb' ) end |
#describe ⇒ Object
63 64 65 66 67 68 |
# File 'lib/rubocop_todo_corrector/cli.rb', line 63 def describe Commands::Describe.call( cop_name: [:cop_name], temporary_gemfile_path: 'tmp/Gemfile_rubocop_todo_corrector.rb' ) end |
#generate ⇒ Object
71 72 73 74 75 76 |
# File 'lib/rubocop_todo_corrector/cli.rb', line 71 def generate Commands::Generate.call( rubocop_todo_path: '.rubocop_todo.yml', temporary_gemfile_path: 'tmp/Gemfile_rubocop_todo_corrector.rb' ) end |
#ignore ⇒ Object
84 85 86 87 88 89 |
# File 'lib/rubocop_todo_corrector/cli.rb', line 84 def ignore Commands::Ignore.call( ignore_file_path: '.rubocop_todo_corrector_ignore', cop_name: [:cop_name] ) end |