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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user