Sha256: 93a6235b14112b09d34cce45a3e1b0daa1723f21053ecfd42c6c059f67e5ce23

Contents?: true

Size: 318 Bytes

Versions: 4

Compression:

Stored size: 318 Bytes

Contents

require 'warp/dir/command'
require 'warp/dir/formatter'

class Warp::Dir::Command::List < Warp::Dir::Command
  description %q(Print all stored warp points)

  def run(*args)
    formatted_list = ::Warp::Dir::Formatter.new(store).format_store
    on :success do
      message formatted_list.blue.bold
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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