lib/lhj/command.rb in lhj-tools-0.1.9 vs lib/lhj/command.rb in lhj-tools-0.1.10

- old
+ new

@@ -28,22 +28,26 @@ require 'lhj/command/sync_pod_repo' self.abstract_command = true self.command = 'lhj' + def begin_title + '开始处理...' + end + def auto_spin - puts "开始处理...\n".green + puts begin_title.green # @spinner.auto_spin end def stop puts '处理完成'.green # @spinner.success('Done!') end def initialize(argv) super(argv) - @spinner = TTY::Spinner.new('...', output: $stdout, format: :dots, clear: true) + @spinner = TTY::Spinner.new('[:spinner]...', output: $stdout, format: :dots, clear: true) end def run auto_spin handle