Sha256: c012a3a62f5a5dc25965ff9a30692304c0583d721ebbbac84894744561f5bc3d

Contents?: true

Size: 469 Bytes

Versions: 16

Compression:

Stored size: 469 Bytes

Contents

# encoding: UTF-8

require 'gli'
require 'pp'

# Define Graces::CLI as GLI Wrapper
module Grache
  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

Grache::CLI.main(ARGV) if __FILE__ == $PROGRAM_NAME

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
grache-0.0.12 lib/grache/cli/cli.rb
grache-0.0.11 lib/grache/cli/cli.rb
grache-0.0.10 lib/grache/cli/cli.rb
grache-0.0.9 lib/grache/cli/cli.rb
grache-0.0.8 lib/grache/cli/cli.rb
grache-0.0.7 lib/grache/cli/cli.rb
grache-0.0.6 lib/grache/cli/cli.rb
grache-0.0.5 lib/grache/cli/cli.rb
grache-0.0.4 lib/grache/cli/cli.rb
grache-0.0.3 lib/grache/cli/cli.rb
grache-0.0.2 lib/grache/cli/cli.rb
grache-0.0.2.pre.rc8 lib/grache/cli/cli.rb
grache-0.0.2.pre.rc4 lib/grache/cli/cli.rb
grache-0.0.2.pre.rc1 lib/grache/cli/cli.rb
grache-0.0.2.pre.rc0 lib/grache/cli/cli.rb
grache-0.0.1 lib/grache/cli/cli.rb