lib/conjur/command/field.rb in conjur-cli-2.1.9 vs lib/conjur/command/field.rb in conjur-cli-2.2.1

- old
+ new

@@ -1,16 +1,16 @@ require 'conjur/command' class Conjur::Command::Field < Conjur::Command self.prefix = :field - desc "Selects a field from structured input" - arg_name "pattern (value | STDIN)" + desc "(Deprecated. See standalone jsonfield command instead.)" command :select do |c| c.action do |global_options,options,args| pattern = require_arg(args, 'pattern') value = args.shift || STDIN.read - + + warn "field:select is deprecated. Please use jsonfield command instead." require 'json' json = JSON.parse(value) class << json def get_binding record = self \ No newline at end of file