Sha256: 963928abf5789851e1e8d8d09068e6256759bc854df11162f36d7df6d1289523

Contents?: true

Size: 935 Bytes

Versions: 3

Compression:

Stored size: 935 Bytes

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/qconfig'
require 'quandl/command/tasks'

Quandl::Logger.use(Quandl::Logger::Outputs)

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', 'display detailed log messages'
    global_option '-U', '--url STRING', 'API url.'
    global_option '--force-yes', 'force y/n with yes'
    
    Tasks.each{|t| t.configure(self) }
    
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
quandl-0.2.27 lib/quandl/command.rb
quandl-0.2.26 lib/quandl/command.rb
quandl-0.2.25 lib/quandl/command.rb