fix: Parse rig/name format in crew commands
All crew commands now accept "rig/name" syntax (e.g., "beads/emma") in addition to requiring --rig flag. The rig is extracted from the first path component. Affected commands: - gt crew at - gt crew restart - gt crew refresh - gt crew remove - gt crew rename - gt crew status - gt crew pristine 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -19,6 +19,13 @@ func runCrewAt(cmd *cobra.Command, args []string) error {
|
||||
// Determine crew name: from arg, or auto-detect from cwd
|
||||
if len(args) > 0 {
|
||||
name = args[0]
|
||||
// Parse rig/name format (e.g., "beads/emma" -> rig=beads, name=emma)
|
||||
if rig, crewName, ok := parseRigSlashName(name); ok {
|
||||
if crewRig == "" {
|
||||
crewRig = rig
|
||||
}
|
||||
name = crewName
|
||||
}
|
||||
} else {
|
||||
// Try to detect from current directory
|
||||
detected, err := detectCrewFromCwd()
|
||||
|
||||
Reference in New Issue
Block a user