Sha256: cac2a5ac2dfb811900bb805e83d2ba67364c1fa6581db3cbe654798a4bc69f92

Contents?: true

Size: 529 Bytes

Versions: 1

Compression:

Stored size: 529 Bytes

Contents

require 'gli'
require 'pp'

# Define GoodData::CLI as GLI Wrapper
module GoodData
  module CLI
    include GLI::App

    # Require shared part of GLI::App - flags, meta, etc
    require File.join(File.dirname(__FILE__), 'shared.rb')

    # Require Hooks
    require File.join(File.dirname(__FILE__), 'hooks.rb')

    GLI::App.commands_from(File.join(File.dirname(__FILE__), 'commands'))

    def self.init
    end

    def self.main(args = ARGV)
      run(args)
    end
  end
end

if __FILE__ == $0
  GoodData::CLI.main(ARGV)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gooddata-0.6.0.pre11 lib/gooddata/cli/cli.rb