Sha256: 37f017141645a74f77920a0ec34c41daf0b394ba1bf539775cb3e2661fef15b6

Contents?: true

Size: 1.16 KB

Versions: 13

Compression:

Stored size: 1.16 KB

Contents

# frozen_string_literal: true

require('thor')
require('cns/apibc')
require('cns/apice1')
require('cns/apice2')
require('cns/bigquery1')
require('cns/bigquery2')
require('cns/bigquery3')
require('cns/bigquery4')
require('cns/etherscan1')
require('cns/etherscan2')
require('cns/greymass1')
require('cns/greymass2')
require('cns/beaconchain1')
require('cns/beaconchain2')
require('cns/bitcoinde')
require('cns/kraken')
require('cns/paymium')
require('cns/therock')
require('cns/version')

module Cns
  # classe para carregar/mostrar dados transacoes eth & eos no bigquery
  class CLI < Thor
    desc 'work', 'carrega transacoes novas no bigquery'
    option :h, type: :hash, default: {}, desc: 'configuracao ajuste reposicionamento temporal'
    # carrega transacoes novas no bigquery
    def work
      Bigquery.new(options).processa_tudo
    end

    desc 'show', 'mostra resumo transacoes'
    option :v, type: :boolean, default: false, desc: 'mostra transacoes'
    option :t, type: :boolean, default: false, desc: 'mostra transacoes todas ou somente novas'
    # mostra resumo transacoes
    def show
      Bigquery.new(options).mostra_tudo
    end

    default_task :show
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cns-0.3.1 lib/cns.rb
cns-0.3.0 lib/cns.rb
cns-0.2.9 lib/cns.rb
cns-0.2.8 lib/cns.rb
cns-0.2.7 lib/cns.rb
cns-0.2.6 lib/cns.rb
cns-0.2.5 lib/cns.rb
cns-0.2.4 lib/cns.rb
cns-0.2.3 lib/cns.rb
cns-0.2.2 lib/cns.rb
cns-0.2.1 lib/cns.rb
cns-0.2.0 lib/cns.rb
cns-0.1.8 lib/cns.rb