# encoding: UTF-8 # # Copyright (c) 2010-2015 GoodData Corporation. All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. 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_relative 'shared.rb' # Require Hooks require_relative 'hooks.rb' GLI::App.commands_from(File.join(File.dirname(__FILE__), 'commands')) def self.main(args = ARGV) run(args) end end end GoodData::CLI.main(ARGV) if __FILE__ == $PROGRAM_NAME