Ignore .claude dirs when listing polecats
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/steveyegge/gastown/internal/beads"
|
"github.com/steveyegge/gastown/internal/beads"
|
||||||
@@ -547,6 +548,9 @@ func (m *Manager) List() ([]*Polecat, error) {
|
|||||||
if !entry.IsDir() {
|
if !entry.IsDir() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if strings.HasPrefix(entry.Name(), ".") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
polecat, err := m.Get(entry.Name())
|
polecat, err := m.Get(entry.Name())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -194,6 +194,9 @@ func TestListWithPolecats(t *testing.T) {
|
|||||||
t.Fatalf("mkdir: %v", err)
|
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
|
// Create mayor/rig for beads path
|
||||||
mayorRig := filepath.Join(root, "mayor", "rig")
|
mayorRig := filepath.Join(root, "mayor", "rig")
|
||||||
if err := os.MkdirAll(mayorRig, 0755); err != nil {
|
if err := os.MkdirAll(mayorRig, 0755); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user