Sha256: cd4bf4ebd27662d45e00e58288bef82845885c9e9467bce3bc92a77b2080f350

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

# frozen_string_literal: true

require('thor')
require('cex/apide')
require('cex/apius')
require('cex/apifr')
require('cex/apimt')
require('cex/bigquery1')
require('cex/bigquery2')
require('cex/bitcoinde')
require('cex/kraken')
require('cex/paymium')
require('cex/therock')
require('cex/version')

module Cex
  class Error < StandardError; end

  # classe para carregar/mostrar dados transacoes kraken 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 saldos & 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 saldos & transacoes
    def show
      Bigquery.new(options).mostra_tudo
    end

    default_task :show
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cex-0.1.8 lib/cex.rb
cex-0.1.7 lib/cex.rb