Sha256: 984ba049bfb695b73b9aa629c3e9584e0b7a3be76beccb81299315a2b84f902e

Contents?: true

Size: 966 Bytes

Versions: 1

Compression:

Stored size: 966 Bytes

Contents

require 'claide'
require "tty-spinner"

module Lhj
  # command plugin
  class Command < CLAide::Command
    require 'lhj/command/init'
    require 'lhj/command/head_import'
    require 'lhj/command/refactor_rename'
    require 'lhj/command/local/fetch'
    require 'lhj/command/local/filter'
    require 'lhj/command/local/local'
    require 'lhj/command/local/micro_service'
    require 'lhj/command/local/local_upload'
    require 'lhj/command/oss'
    require 'lhj/command/oss/del'
    require 'lhj/command/oss/upload'
    require 'lhj/command/oss/list'
    require 'lhj/command/view'
    require 'lhj/command/rename_image'
    require 'lhj/command/trans'
    require 'lhj/command/yapi'

    self.abstract_command = true
    self.command = 'lhj'

    def spinner
      @spinner ||= TTY::Spinner.new('[:spinner]正在处理...', format: :dots)
    end

    def auto_spin
      spinner.auto_spin
    end

    def stop
      spinner.stop('Done!')
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lhj-tools-0.1.5 lib/lhj/command.rb