Sha256: 9ee928016355b4f722b7d4e80be00d2ba0b35f4c6fe258db16aa0a4275bf8311
Contents?: true
Size: 633 Bytes
Versions: 3
Compression:
Stored size: 633 Bytes
Contents
require 'warp/dir/command' require 'warp/dir/formatter' class Warp::Dir::Command::Clean < Warp::Dir::Command description %q(Removes any no-longer existing warp points) aliases :x def run(*) removed = store.clean! s = self.store if removed.empty? on :success do message 'All entries are valid in your file ' + s.config.warprc.blue + ' are ' + 'valid.'.green end else on :success do message "The following no-longer existing points have been removed:\n\n".bold + ::Warp::Dir::Formatter::StoreFormatter.new(removed).format.bold.red end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
warp-dir-1.6.2 | lib/warp/dir/command/clean.rb |
warp-dir-1.6.1 | lib/warp/dir/command/clean.rb |
warp-dir-1.6.0 | lib/warp/dir/command/clean.rb |