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:
@@ -26,8 +26,9 @@ var (
|
||||
)
|
||||
|
||||
var polecatCmd = &cobra.Command{
|
||||
Use: "polecat",
|
||||
Short: "Manage polecats in rigs",
|
||||
Use: "polecat",
|
||||
Aliases: []string{"cat"},
|
||||
Short: "Manage polecats in rigs",
|
||||
Long: `Manage polecat lifecycle in rigs.
|
||||
|
||||
Polecats are worker agents that operate in their own git clones.
|
||||
|
||||
@@ -23,8 +23,9 @@ var (
|
||||
)
|
||||
|
||||
var refineryCmd = &cobra.Command{
|
||||
Use: "refinery",
|
||||
Short: "Manage the merge queue processor",
|
||||
Use: "refinery",
|
||||
Aliases: []string{"ref"},
|
||||
Short: "Manage the merge queue processor",
|
||||
Long: `Manage the Refinery merge queue processor for a rig.
|
||||
|
||||
The Refinery processes merge requests from polecats, merging their work
|
||||
|
||||
@@ -29,8 +29,9 @@ var (
|
||||
)
|
||||
|
||||
var sessionCmd = &cobra.Command{
|
||||
Use: "session",
|
||||
Short: "Manage polecat sessions",
|
||||
Use: "session",
|
||||
Aliases: []string{"sess"},
|
||||
Short: "Manage polecat sessions",
|
||||
Long: `Manage tmux sessions for polecats.
|
||||
|
||||
Sessions are tmux sessions running Claude for each polecat.
|
||||
|
||||
@@ -29,8 +29,9 @@ var (
|
||||
)
|
||||
|
||||
var spawnCmd = &cobra.Command{
|
||||
Use: "spawn <rig/polecat> | <rig>",
|
||||
Short: "Spawn a polecat with work assignment",
|
||||
Use: "spawn <rig/polecat> | <rig>",
|
||||
Aliases: []string{"sp"},
|
||||
Short: "Spawn a polecat with 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
|
||||
|
||||
@@ -17,8 +17,9 @@ import (
|
||||
var statusJSON bool
|
||||
|
||||
var statusCmd = &cobra.Command{
|
||||
Use: "status",
|
||||
Short: "Show overall town status",
|
||||
Use: "status",
|
||||
Aliases: []string{"stat"},
|
||||
Short: "Show overall town status",
|
||||
Long: `Display the current status of the Gas Town workspace.
|
||||
|
||||
Shows town name, registered rigs, active polecats, and witness status.`,
|
||||
|
||||
Reference in New Issue
Block a user