Class: Toga::Commands::Remove

Inherits:
Toga::Command show all
Defined in:
lib/toga/commands/remove.rb

Direct Known Subclasses

Rm

Class Method Summary collapse

Methods included from Error

included

Class Method Details

.run!(*args) ⇒ Object



5
6
7
8
9
# File 'lib/toga/commands/remove.rb', line 5

def self.run!(*args)
  removed = Togafile.remove_from_group :current, args.join(' ')
  puts removed ? "Removed '#{removed}'.\r\n\r\n" : ""
  Togafile.lines_in_group(:current)
end