Class: Clr::Cli

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

Constant Summary collapse

FORCE_PATTERNS =
[
  /\s*binding\.pry/,
  /\s*require .pry./,
]
PATTERNS =
[
  /binding\.pry/,
  /require .pry./,
]

Instance Method Summary collapse

Instance Method Details

#clean(path = Dir.pwd) ⇒ Object



24
25
26
27
28
29
30
31
# File 'lib/clr/cli.rb', line 24

def clean(path = Dir.pwd)
  @path = Pathname.new(path)

  search_markers    if options[:search]
  comment_markers   if options[:comment]
  uncomment_markers if options[:uncomment]
  remove_markers    if options[:remove]
end