Ignore .claude dirs when listing polecats
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user