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

      installed = Guard::DslDescriber.guardfile_structure.inject([]) do |installed, group|
        group[:guards].each { |guard| installed << guard[:name] } if group[:guards]
        installed
      end

      Guard::UI.info 'Available guards:'

      Guard::guard_gem_names.sort.uniq.each do |name|
        Guard::UI.info "   #{ name } #{ installed.include?(name) ? '*' : '' }"
      end

      Guard::UI.info ' '
      Guard::UI.info 'See also https://github.com/guard/guard/wiki/List-of-available-Guards'
      Guard::UI.info '* denotes ones already in your Guardfile'
    end
# List the Guards that are available for use in your system and marks
# those that are currently used in your `Guardfile`.
#
# @example guard list output
#
#   Available guards:
#     bundler *
#     livereload
#     ronn
#     rspec *
#     spork
#
#   See also https://github.com/guard/guard/wiki/List-of-available-Guards
#   * denotes ones already in your Guardfile
#
# @see Guard::DslDescriber
#
List the Guards that are available for use in your system and marks
those that are currently used in your `Guardfile`.
List the Guards that are available for use in your system and marks those that are currently used in your ` Guardfile ` .
def list
      Guard::DslDescriber.evaluate_guardfile(options)
      installed = Guard::DslDescriber.guardfile_structure.inject([]) do |installed, group|
        group[:guards].each { |guard| installed << guard[:name] } if group[:guards]
        installed
      end
      Guard::UI.info 'Available guards:'
      Guard::guard_gem_names.sort.uniq.each do |name|
        Guard::UI.info "   #{ name } #{ installed.include?(name) ? '*' : '' }"
      end
      Guard::UI.info ' '
      Guard::UI.info 'See also https://github.com/guard/guard/wiki/List-of-available-Guards'
      Guard::UI.info '* denotes ones already in your Guardfile'
    end
def list Guard :: DslDescriber . evaluate_guardfile ( options ) installed = Guard :: DslDescriber . guardfile_structure . inject ( [ ] ) do | installed , group | group [ :guards ] . each { | guard | installed << guard [ :name ] } if group [ :guards ] installed end Guard :: UI . info 'Available guards:' Guard :: guard_gem_names . sort . uniq . each do | name | Guard :: UI . info "   #{ name } #{ installed.include?(name) ? '*' : '' }" end Guard :: UI . info ' ' Guard :: UI . info 'See also https://github.com/guard/guard/wiki/List-of-available-Guards' Guard :: UI . info '* denotes ones already in your Guardfile' end
List the Guards that are available for use in your system and marks
those that are currently used in your `Guardfile`.
List the Guards that are available for use in your system and marks those that are currently used in your ` Guardfile ` .
example
None
see
None