Sha256: b3c6c4d06248d39c92a25911d836c2d5cbd99568fc4994572c209253e58d1395

Contents?: true

Size: 1.8 KB

Versions: 2

Compression:

Stored size: 1.8 KB

Contents

# frozen_string_literal: true

require('thor')
require('cns/apibc')
require('cns/apice')
require('cns/bigquery')
require('cns/etherscan')
require('cns/greymass')
require('cns/beaconchain')
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 'weth', 'carrega transacoes eth no bigquery'
    option :h, type: :hash, default: {}, desc: 'configuracao ajuste reposicionamento temporal'
    # carrega transacoes eth no bigquery
    def weth
      Bigquery.new(options).processa_weth
    end

    desc 'wkrk', 'carrega transacoes kraken/eth no bigquery'
    option :h, type: :hash, default: {}, desc: 'configuracao ajuste reposicionamento temporal'
    # carrega transacoes kraken/eth no bigquery
    def wkrk
      Bigquery.new(options).processa_wkrk
    end

    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

    desc 'skrk', 'mostra kraken/eth transacoes'
    option :v, type: :boolean, default: true, desc: 'mostra transacoes'
    option :t, type: :boolean, default: false, desc: 'mostra transacoes todas ou somente novas'
    # mostra kraken/eth transacoes
    def skrk
      Bigquery.new(options).mostra_skrk
    end

    default_task :skrk
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cns-0.4.3 lib/cns.rb
cns-0.4.2 lib/cns.rb