feat(crew): accept rig name as positional arg in crew status

Allow `gt crew status <rig>` to work without requiring --rig flag.
This matches the pattern already used by crew start and crew stop.

Desire path: hq-v33hb

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
mayor
2026-01-12 23:07:26 -08:00
committed by beads/crew/emma
parent 2d8949a3d3
commit 15cfb76c2c
4 changed files with 545 additions and 4 deletions
+7
View File
@@ -40,6 +40,13 @@ func runCrewStatus(cmd *cobra.Command, args []string) error {
crewRig = rig
}
targetName = crewName
} else if crewRig == "" {
// Check if single arg (without "/") is a valid rig name
// If so, show status for all crew in that rig
if _, _, err := getRig(targetName); err == nil {
crewRig = targetName
targetName = "" // Show all crew in the rig
}
}
}