Module Thor::Shell
In: lib/thor/shell/basic.rb
lib/thor/shell/html.rb
lib/thor/shell/color.rb
lib/thor/shell.rb

Methods

new   shell   shell=   with_padding  

Classes and Modules

Class Thor::Shell::Basic
Class Thor::Shell::Color
Class Thor::Shell::HTML

Constants

SHELL_DELEGATED_METHODS = [:ask, :yes?, :no?, :say, :say_status, :print_table]

Public Class methods

Add shell to initialize config values.

Configuration

shell<Object>:An instance of the shell to be used.

Examples

  class MyScript < Thor
    argument :first, :type => :numeric
  end

  MyScript.new [1.0], { :foo => :bar }, :shell => Thor::Shell::Basic.new

Public Instance methods

Holds the shell for the given Thor instance. If no shell is given, it gets a default shell from Thor::Base.shell.

Sets the shell for this thor class.

Yields the given block with padding.

[Validate]