lib/guard/cli.rb
def show
      Guard::DslDescriber.evaluate_guardfile(options)

      Guard::DslDescriber.guardfile_structure.each do |group|
        unless group[:guards].empty?
          if group[:group]
            Guard::UI.info "Group #{ group[:group] }:"
          else
            Guard::UI.info '(global):'
          end

          group[:guards].each do |guard|
            line = "  #{ guard[:name] }"

            unless guard[:options].empty?
              line += ": #{ guard[:options].collect { |k, v| "#{ k } => #{ v.inspect }" }.join(', ') }"
            end

            Guard::UI.info line
          end
        end
      end

      Guard::UI.info ''
    end
# Shows all Guards and their options that are defined in
# the `Guardfile`.
#
# @example guard show output
#
#   (global):
#     bundler
#     coffeescript: input => "app/assets/javascripts", noop => true
#     jasmine
#     rspec: cli => "--fail-fast --format Fuubar
#
# @see Guard::DslDescriber
#
Shows all Guards and their options that are defined in
the `Guardfile`.
Shows all Guards and their options that are defined in the ` Guardfile ` .
def show
      Guard::DslDescriber.evaluate_guardfile(options)
      Guard::DslDescriber.guardfile_structure.each do |group|
        unless group[:guards].empty?
          if group[:group]
            Guard::UI.info "Group #{ group[:group] }:"
          else
            Guard::UI.info '(global):'
          end
          group[:guards].each do |guard|
            line = "  #{ guard[:name] }"
            unless guard[:options].empty?
              line += ": #{ guard[:options].collect { |k, v| "#{ k } => #{ v.inspect }" }.join(', ') }"
            end
            Guard::UI.info line
          end
        end
      end
      Guard::UI.info ''
    end
def show Guard :: DslDescriber . evaluate_guardfile ( options ) Guard :: DslDescriber . guardfile_structure . each do | group | unless group [ :guards ] . empty? if group [ :group ] Guard :: UI . info "Group #{ group[:group] }:" else Guard :: UI . info '(global):' end group [ :guards ] . each do | guard | line = "  #{ guard[:name] }" unless guard [ :options ] . empty? line += ": #{ guard[:options].collect { |k, v| "#{ k } => #{ v.inspect }" }.join(', ') }" end Guard :: UI . info line end end end Guard :: UI . info '' end
Shows all Guards and their options that are defined in
the `Guardfile`.
Shows all Guards and their options that are defined in the ` Guardfile ` .
example
guard show output (global): bundler coffeescript: input => "app/assets/javascripts", noop => true jasmine rspec: cli => "--fail-fast --format Fuubar
guard show output ( global ) : bundler coffeescript : input = > " app / assets / javascripts " noop = > true jasmine rspec : cli = > " -- fail - fast -- format Fuubar
see
None