Class: Tapp::Command

Inherits:
Thor
  • Object
show all
Defined in:
lib/tapp/command.rb

Instance Method Summary collapse

Instance Method Details

#grepObject



6
7
8
9
10
# File 'lib/tapp/command.rb', line 6

def grep(*)
  opts = ['--word-regexp', '-e', 'tapp', '-e', 'taputs', '-e', 'taap', *ARGV.drop(1)]
  git_grep = ['git', 'grep', opts].flatten.join(' ')
  puts `#{git_grep}`.gsub(/^Gemfile(\.lock)?:.+?\n/, '')
end