module Chef::Knife::Core::NodeFormattingOptions

This module may be included into a knife subcommand class to automatically add configuration options used by the 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/node_presenter.rb, line 32
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