Sha256: 0ddd79addd9c6679cffd9a788a2fbda06a284ef7d9ccce533e64e62eccb522fb

Contents?: true

Size: 728 Bytes

Versions: 19

Compression:

Stored size: 728 Bytes

Contents

#!/usr/bin/env ruby
# encoding: UTF-8

# add lib to libpath (only needed when running from the sources)
require 'pathname'
lib_path = File.expand_path('../../lib', Pathname.new(__FILE__).realpath)
$:.unshift lib_path unless $:.include?(lib_path)

STDOUT.sync = true

if ARGV[0] == 'complete'
  ARGV.delete_at(0)
  $VERSION_WARNING_ADDED=true
  require 'kontena/scripts/completer'
else

  arg_end_idx = ARGV.index('--') || ARGV.size
  ENV['CMD_DEBUG'] = "true" if ARGV[0..arg_end_idx].any? { |arg| arg == '-D' || arg == '--debug'}
  ENV['CMD_DEBUG'] = "false" if ARGV[0..arg_end_idx].any? { |arg| arg == '--no-debug' }
  require 'kontena_cli'
  Kontena::PluginManager.init unless ENV['NO_PLUGINS']
  Kontena::MainCommand.run
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
krates-1.7.11 bin/krates
krates-1.7.10 bin/krates
krates-1.7.9 bin/krates
krates-1.7.8 bin/krates
krates-1.7.7 bin/krates
krates-1.7.6 bin/krates
krates-1.7.5 bin/krates
krates-1.7.4 bin/krates
krates-1.7.3 bin/krates
krates-1.7.2 bin/krates
krates-1.7.1 bin/krates
krates-1.7.0 bin/krates
krates-1.6.9 bin/krates
krates-1.6.8 bin/krates
krates-1.6.7 bin/krates
krates-1.6.6 bin/krates
krates-1.6.5 bin/krates
krates-1.6.4 bin/krates
krates-1.6.3 bin/krates