DEFAULT_SUBCOMMAND_FILES | = | Dir[File.expand_path(File.join(File.dirname(__FILE__), 'knife', '*.rb'))] | The "require paths" of the core knife subcommands bundled with chef |
name_args | [RW] |
Explicitly set the category for the current command to new_category The category is normally determined from the first word of the command name, but some commands make more sense using two or more words
new_category:: | A String to set the category to (see examples) |
Data bag commands would be in the ‘data’ category by default. To put them in the ‘data bag’ category:
category('data bag')
Print the list of subcommands knife knows about. If preferred_category is given, only subcommands in that category are shown
Create a new instance of the current class configured for the given arguments and options
Run knife for the given args (ARGV), adding options to the list of CLI options that the subcommand knows how to handle.
args:: | usually ARGV |
options:: | A Mixlib::CLI option parser hash. These options are how |
subcommands know about global knife CLI options