fix(crew): improve error message when not in crew workspace

- Show clearer error explaining user needs to specify crew name or cd into crew dir
- When --rig is specified, list available crew members in that rig

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2026-01-07 18:24:38 -08:00
parent 9b5c889795
commit ffeff97d9f
2 changed files with 14 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ func detectCrewFromCwd() (*crewDetection, error) {
// Look for pattern: <rig>/crew/<name>/...
// Minimum: rig, crew, name = 3 parts
if len(parts) < 3 {
return nil, fmt.Errorf("not in a crew workspace (path too short)")
return nil, fmt.Errorf("not inside a crew workspace - specify the crew name or cd into a crew directory (e.g., gastown/crew/max)")
}
rigName := parts[0]