module Chef::Knife::Core::FormattingOptions
This module may be included into a knife subcommand class to automatically add configuration options used by the StatusPresenter
and NodePresenter
.
Public Class Methods
included(includer)
click to toggle source
@private Would prefer to do this in a rational way, but can't be done b/c of Mixlib::CLI's design :(
# File lib/chef/knife/core/formatting_options.rb, line 29 def self.included(includer) includer.class_eval do option :medium_output, short: "-m", long: "--medium", boolean: true, default: false, description: "Include normal attributes in the output" option :long_output, short: "-l", long: "--long", boolean: true, default: false, description: "Include all attributes in the output" end end