Ignore .claude dirs when listing polecats

This commit is contained in:
joshuavial
2026-01-08 21:34:08 +13:00
parent f4cbcb4ce9
commit 45634059dd
2 changed files with 7 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ import (
"os/exec"
"path/filepath"
"strconv"
"strings"
"time"
"github.com/steveyegge/gastown/internal/beads"
@@ -547,6 +548,9 @@ func (m *Manager) List() ([]*Polecat, error) {
if !entry.IsDir() {
continue
}
if strings.HasPrefix(entry.Name(), ".") {
continue
}
polecat, err := m.Get(entry.Name())
if err != nil {

View File

@@ -194,6 +194,9 @@ func TestListWithPolecats(t *testing.T) {
t.Fatalf("mkdir: %v", err)
}
}
if err := os.MkdirAll(filepath.Join(root, "polecats", ".claude"), 0755); err != nil {
t.Fatalf("mkdir .claude: %v", err)
}
// Create mayor/rig for beads path
mayorRig := filepath.Join(root, "mayor", "rig")
if err := os.MkdirAll(mayorRig, 0755); err != nil {