lib/conjur/cli.rb in conjur-cli-4.17.0 vs lib/conjur/cli.rb in conjur-cli-4.18.0
- old
+ new
@@ -30,10 +30,11 @@
autoload :IdentifierManipulation, 'conjur/identifier_manipulation'
autoload :Authn, 'conjur/authn'
autoload :Command, 'conjur/command'
autoload :DSL, 'conjur/dsl/runner'
autoload :DSLCommand, 'conjur/command/dsl_command'
+ autoload :VERSION, 'conjur/version'
module Audit
autoload :Follower, 'conjur/audit/follower'
end
@@ -65,11 +66,11 @@
plugins.each do |plugin|
begin
filename = "conjur-asset-#{plugin}"
require filename
rescue LoadError
- warn "Could not load plugin '#{plugin}' specified in your config file.\nMake sure you have the #{filename}-api gem installed."
+ warn "Could not load plugin '#{plugin}' specified in your config file.\nMake sure you have the #{filename} gem installed."
end
end
end
# This makes our generate-commands script a little bit cleaner. We can call this from that script
@@ -82,9 +83,11 @@
commands_from 'conjur/command'
end
end
init!
+
+ version Conjur::VERSION
pre do |global,command,options,args|
require 'conjur/api'
if command.name_for_help.first == "init" and options.has_key?("account")