Module | Nanoc::CLI |
In: |
lib/nanoc/cli/command_runner.rb
lib/nanoc/cli/error_handler.rb lib/nanoc/cli/logger.rb lib/nanoc/cli.rb |
encoding: utf-8
Command | = | CommandRunner | @deprecated Use {Nanoc::CLI::CommandRunner} instead |
Adds the given command to the collection of available commands.
@param [Cri::Command] cmd The command to add
@return [void]
@param [Boolean] boolean true if debug output should be enabled,
false if it should not
@return [void]
@since 3.2.0
Loads the command in the file with the given filename.
@param [String] filename The name of the file that contains the command
@return [Cri::Command] The loaded command