lib/warp/dir/command.rb in warp-dir-1.6.2 vs lib/warp/dir/command.rb in warp-dir-1.7.0
- old
+ new
@@ -17,11 +17,11 @@
def help
sprintf('%16s %-20s %s%s',
self.command_name.to_s.yellow,
(self.send(:needs_a_point?) ? '<point>'.cyan : ' '.cyan),
self.send(:description).blue.bold,
- (self.respond_to?(:aliases) && !aliases.empty? ? ", aka: " + aliases.join(', ').blue + '' : '')
+ (self.respond_to?(:aliases) && !aliases.empty? ? ", aka: #{aliases.join(', ').blue}" : '')
)
end
def inherited(subclass)
::Warp::Dir::Commander.instance.register(subclass)
@@ -77,10 +77,10 @@
self.point_path = point_path if point_path
end
if store.config.debug
require 'pp'
- STDERR.printf 'Initialized Command: '.yellow.bold
+ $stderr.printf 'Initialized Command: '.yellow.bold
pp self
end
end
def config