Sha256: 91fd28694d8df49dceef30c61cad28a6fde0a9cc89cafc296f2e9bc1af2b73ab

Contents?: true

Size: 421 Bytes

Versions: 5

Compression:

Stored size: 421 Bytes

Contents

require 'warp/dir/command'
class Warp::Dir::Command
  class Remove < Warp::Dir::Command
    description %q(Removes a given warp point from the database)
    needs_a_point? true
    aliases :rm, :delete

    def run(*args)
      point_name = self.point_name
      store.remove point_name: point_name
      on :success do
        message "Warp point #{point_name.to_s.yellow} has been removed."
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
warp-dir-1.1.4 lib/warp/dir/command/remove.rb
warp-dir-1.1.3 lib/warp/dir/command/remove.rb
warp-dir-1.1.2 lib/warp/dir/command/remove.rb
warp-dir-1.1.1 lib/warp/dir/command/remove.rb
warp-dir-1.1.0 lib/warp/dir/command/remove.rb