feat: add command aliases for PGT parity (may, sess, ref, sp, cat, stat)

Add Cobra aliases to match PGT abbreviation support:
- mayor → may (gt may at now works)
- session → sess
- refinery → ref
- spawn → sp
- polecat → cat
- status → stat

This enables the same abbreviated commands that worked in PGT, like
"gt may at" to attach to the Mayor session.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-18 00:31:19 -08:00
parent 0703835ce9
commit 6e29231094
5 changed files with 15 additions and 10 deletions

View File

@@ -26,8 +26,9 @@ var (
) )
var polecatCmd = &cobra.Command{ var polecatCmd = &cobra.Command{
Use: "polecat", Use: "polecat",
Short: "Manage polecats in rigs", Aliases: []string{"cat"},
Short: "Manage polecats in rigs",
Long: `Manage polecat lifecycle in rigs. Long: `Manage polecat lifecycle in rigs.
Polecats are worker agents that operate in their own git clones. Polecats are worker agents that operate in their own git clones.

View File

@@ -23,8 +23,9 @@ var (
) )
var refineryCmd = &cobra.Command{ var refineryCmd = &cobra.Command{
Use: "refinery", Use: "refinery",
Short: "Manage the merge queue processor", Aliases: []string{"ref"},
Short: "Manage the merge queue processor",
Long: `Manage the Refinery merge queue processor for a rig. Long: `Manage the Refinery merge queue processor for a rig.
The Refinery processes merge requests from polecats, merging their work The Refinery processes merge requests from polecats, merging their work

View File

@@ -29,8 +29,9 @@ var (
) )
var sessionCmd = &cobra.Command{ var sessionCmd = &cobra.Command{
Use: "session", Use: "session",
Short: "Manage polecat sessions", Aliases: []string{"sess"},
Short: "Manage polecat sessions",
Long: `Manage tmux sessions for polecats. Long: `Manage tmux sessions for polecats.
Sessions are tmux sessions running Claude for each polecat. Sessions are tmux sessions running Claude for each polecat.

View File

@@ -29,8 +29,9 @@ var (
) )
var spawnCmd = &cobra.Command{ var spawnCmd = &cobra.Command{
Use: "spawn <rig/polecat> | <rig>", Use: "spawn <rig/polecat> | <rig>",
Short: "Spawn a polecat with work assignment", Aliases: []string{"sp"},
Short: "Spawn a polecat with work assignment",
Long: `Spawn a polecat with a work assignment. Long: `Spawn a polecat with a work assignment.
Assigns an issue or task to a polecat and starts a session. If no polecat Assigns an issue or task to a polecat and starts a session. If no polecat

View File

@@ -17,8 +17,9 @@ import (
var statusJSON bool var statusJSON bool
var statusCmd = &cobra.Command{ var statusCmd = &cobra.Command{
Use: "status", Use: "status",
Short: "Show overall town status", Aliases: []string{"stat"},
Short: "Show overall town status",
Long: `Display the current status of the Gas Town workspace. Long: `Display the current status of the Gas Town workspace.
Shows town name, registered rigs, active polecats, and witness status.`, Shows town name, registered rigs, active polecats, and witness status.`,