lib/lhj/command.rb in lhj-tools-0.1.5 vs lib/lhj/command.rb in lhj-tools-0.1.6
- old
+ new
@@ -23,14 +23,15 @@
self.abstract_command = true
self.command = 'lhj'
def spinner
- @spinner ||= TTY::Spinner.new('[:spinner]正在处理...', format: :dots)
+ @spinner ||= TTY::Spinner.new('[:spinner]正在处理...', output: $stdout, format: :dots)
end
def auto_spin
spinner.auto_spin
+ puts "\n"
end
def stop
spinner.stop('Done!')
end