Sha256: 16c99d1cd0e6e3b7a9dd656ef5c475858720153e3af0eb60aebe048e722d06c8

Contents?: true

Size: 1.51 KB

Versions: 5

Compression:

Stored size: 1.51 KB

Contents

require 'pry' if ENV['BUNDLE_LOCAL_GEMS']

module Quandl
module Command
  def self.root
    @root ||= File.expand_path(File.join(File.dirname(__FILE__), '../../'))
  end
end
end

require 'quandl/lang'
require "quandl/command/version"
require 'quandl/command/config'
require 'quandl/command/presenter'
require 'quandl/command/tasks'

Quandl::Logger.use(Quandl::Logger::Outputs)
I18n.enforce_available_locales = false

module Quandl::Command
  extend ActiveSupport::Concern
  
  included do
    
    program :name, 'Quandl Toolbelt'
    program :description, 'http://quandl.com/ command line interface.'
    program :version, Quandl::Command::VERSION
    
    default_command :help
    
    global_option '-T', '--token STRING', 'secret token used to authenticate requests.'
    global_option '-V', '--verbose', 'use detailed log output'
    global_option '-U', '--url STRING', 'the API host that will be used'
    global_option '-F', '--output-format STRING', 'the output format [ pipes, json, qdf ]'
    global_option '-C', '--output-column INTEGER', 'the column to output'
    global_option '-E', '--environment INTEGER', 'the environment to load'
    global_option '--threads INTEGER', 'how many threads to use for concurrent operations'
    global_option '--stdout STRING', 'where to redirect stdout'
    global_option '--stderr STRING', 'where to redirect stderr'
    global_option '--force-yes', 'force y/n with yes'
    global_option '--sandbox', 'sandbox specific default options'
    
    Tasks.each{|t| t.configure(self) }
    
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
quandl-0.4.4 lib/quandl/command.rb
quandl-0.4.3 lib/quandl/command.rb
quandl-0.4.2 lib/quandl/command.rb
quandl-0.4.1 lib/quandl/command.rb
quandl-0.4.0 lib/quandl/command.rb