Sha256: 6773ed785420f2dea82792708c348f4b42622a31b7cbdb04e389fb09870692bc

Contents?: true

Size: 925 Bytes

Versions: 1

Compression:

Stored size: 925 Bytes

Contents

require 'pry' if ENV['BUNDLE_LOCAL_GEMS']

module Quandl::Command
  def self.root
    @root ||= File.expand_path(File.join(File.dirname(__FILE__), '../../'))
  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

1 entries across 1 versions & 1 rubygems

Version Path
quandl-0.2.24 lib/quandl/command.rb