lib/chef/knife/environment_show.rb in chef-10.34.6 vs lib/chef/knife/environment_show.rb in chef-11.0.0.beta.0

- old
+ new

@@ -25,9 +25,16 @@ deps do require 'chef/environment' require 'chef/json_compat' end + @attrs_to_show = [] + option :attribute, + :short => "-a [ATTR]", + :long => "--attribute [ATTR]", + :proc => lambda {|val| @attrs_to_show << val}, + :description => "Show one or more attributes" + banner "knife environment show ENVIRONMENT (options)" def run env_name = @name_args[0]