Sha256: f5d1d030abd12079ce4ab663c838e10ae96b3f18dc33828f71a402a8e54c7a72

Contents?: true

Size: 720 Bytes

Versions: 14

Compression:

Stored size: 720 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['DEBUG'] = "true" if ARGV[0..arg_end_idx].any? { |arg| arg == '-D' || arg == '--debug'}
  ENV['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

14 entries across 14 versions & 2 rubygems

Version Path
krates-1.6.2 bin/krates
krates-1.6.1 bin/krates
krates-1.6.0 bin/krates
kontena-cli-1.5.4 bin/kontena
kontena-cli-1.5.4.rc1 bin/kontena
kontena-cli-1.5.3 bin/kontena
kontena-cli-1.5.2 bin/kontena
kontena-cli-1.5.1 bin/kontena
kontena-cli-1.5.0 bin/kontena
kontena-cli-1.5.0.rc1 bin/kontena
kontena-cli-1.5.0.pre5 bin/kontena
kontena-cli-1.5.0.pre4 bin/kontena
kontena-cli-1.5.0.pre3 bin/kontena
kontena-cli-1.5.0.pre2 bin/kontena