require "findrepos/version"
require "thor"
require "pathname"

class Findrepos < Thor
  desc 'list', 'lists all Git repositories in the current directory'
  def list
    puts Dir.glob('*/.git').map { |dir| Pathname.new(dir).dirname }
  end
end

require "findrepos/version"
require "thor"
require "pathname"

class Findrepos < Thor
  desc 'list', 'lists all Git repositories in the current directory'
  def list
    puts Dir.glob('*/.git').map { |dir| Pathname.new(dir).dirname }
  end

  default_command :list
end

Make list the default command
Make list the default command
