Method: Commands#untag
- Defined in:
- lib/cnote/commands.rb
#untag(params) ⇒ Object
179 180 181 182 183 184 185 186 187 188 189 190 191 |
# File 'lib/cnote/commands.rb', line 179 def untag(params) notes = multi_note(params) notes.each do |note| = params.slice(1, params.length) note.() end set_filtered(notes) print_list("Changed", @filtered) puts "Removed #{params.length - 1} tag#{"s" if params.length != 2} from #{notes.length} note#{"s" if notes.length != 1}." end |