Sha256: 60fc353d7f4149680a28a71b1238e5187e99f9969a4ae7718fb2d587a84d42fd

Contents?: true

Size: 331 Bytes

Versions: 9

Compression:

Stored size: 331 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)
  aliases :l

  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

9 entries across 9 versions & 1 rubygems

Version Path
warp-dir-1.7.0 lib/warp/dir/command/list.rb
warp-dir-1.6.2 lib/warp/dir/command/list.rb
warp-dir-1.6.1 lib/warp/dir/command/list.rb
warp-dir-1.6.0 lib/warp/dir/command/list.rb
warp-dir-1.5.0 lib/warp/dir/command/list.rb
warp-dir-1.3.0 lib/warp/dir/command/list.rb
warp-dir-1.2.0 lib/warp/dir/command/list.rb
warp-dir-1.1.5 lib/warp/dir/command/list.rb
warp-dir-1.1.4 lib/warp/dir/command/list.rb