Class: Taggata::Cli::RemoveCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/taggata/cli/remove.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



7
8
9
10
11
12
13
# File 'lib/taggata/cli/remove.rb', line 7

def execute
  parser = ::Taggata::Parser::Query.new @db
  results = parser.parse query
  @db.transaction do
    results.each(&:destroy)
  end
end