fix(sling): remove dead --molecule flag
The --molecule flag was defined but never wired up - the slingMolecule variable was set by the flag parser but never read by any code path. Users should use --on instead, which is fully implemented: gt sling <formula> --on <bead> <target> The --on flag properly instantiates the formula (cook + wisp + bond) and applies it to the target bead before slinging. Keeping --on as the canonical way to apply formulas to beads since it's actually wired up and working. The --molecule flag can be re-added later if a different argument order is desired. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -242,7 +242,7 @@ Note: "Swarm" is ephemeral (workers on a convoy's issues). See [Convoys](convoy.
|
|||||||
# Standard workflow: convoy first, then sling
|
# Standard workflow: convoy first, then sling
|
||||||
gt convoy create "Feature X" gt-abc gt-def
|
gt convoy create "Feature X" gt-abc gt-def
|
||||||
gt sling gt-abc <rig> # Assign to polecat
|
gt sling gt-abc <rig> # Assign to polecat
|
||||||
gt sling gt-def <rig> --molecule=<proto> # With workflow template
|
gt sling <proto> --on gt-def <rig> # With workflow template
|
||||||
|
|
||||||
# Quick sling (auto-creates convoy)
|
# Quick sling (auto-creates convoy)
|
||||||
gt sling <bead> <rig> # Auto-convoy for dashboard visibility
|
gt sling <bead> <rig> # Auto-convoy for dashboard visibility
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ Target Resolution:
|
|||||||
gt sling gt-abc deacon/dogs/alpha # Specific dog
|
gt sling gt-abc deacon/dogs/alpha # Specific dog
|
||||||
|
|
||||||
Spawning Options (when target is a rig):
|
Spawning Options (when target is a rig):
|
||||||
gt sling gp-abc greenplace --molecule mol-review # Use specific workflow
|
|
||||||
gt sling gp-abc greenplace --create # Create polecat if missing
|
gt sling gp-abc greenplace --create # Create polecat if missing
|
||||||
gt sling gp-abc greenplace --naked # No-tmux (manual start)
|
gt sling gp-abc greenplace --naked # No-tmux (manual start)
|
||||||
gt sling gp-abc greenplace --force # Ignore unread mail
|
gt sling gp-abc greenplace --force # Ignore unread mail
|
||||||
@@ -101,7 +100,6 @@ var (
|
|||||||
// Flags migrated for polecat spawning (used by sling for work assignment
|
// Flags migrated for polecat spawning (used by sling for work assignment
|
||||||
slingNaked bool // --naked: no-tmux mode (skip session creation)
|
slingNaked bool // --naked: no-tmux mode (skip session creation)
|
||||||
slingCreate bool // --create: create polecat if it doesn't exist
|
slingCreate bool // --create: create polecat if it doesn't exist
|
||||||
slingMolecule string // --molecule: workflow to instantiate on the bead
|
|
||||||
slingForce bool // --force: force spawn even if polecat has unread mail
|
slingForce bool // --force: force spawn even if polecat has unread mail
|
||||||
slingAccount string // --account: Claude Code account handle to use
|
slingAccount string // --account: Claude Code account handle to use
|
||||||
slingNoConvoy bool // --no-convoy: skip auto-convoy creation
|
slingNoConvoy bool // --no-convoy: skip auto-convoy creation
|
||||||
@@ -118,7 +116,6 @@ func init() {
|
|||||||
// Flags for polecat spawning (when target is a rig)
|
// Flags for polecat spawning (when target is a rig)
|
||||||
slingCmd.Flags().BoolVar(&slingNaked, "naked", false, "No-tmux mode: assign work but skip session creation (manual start)")
|
slingCmd.Flags().BoolVar(&slingNaked, "naked", false, "No-tmux mode: assign work but skip session creation (manual start)")
|
||||||
slingCmd.Flags().BoolVar(&slingCreate, "create", false, "Create polecat if it doesn't exist")
|
slingCmd.Flags().BoolVar(&slingCreate, "create", false, "Create polecat if it doesn't exist")
|
||||||
slingCmd.Flags().StringVar(&slingMolecule, "molecule", "", "Molecule workflow to instantiate on the bead")
|
|
||||||
slingCmd.Flags().BoolVar(&slingForce, "force", false, "Force spawn even if polecat has unread mail")
|
slingCmd.Flags().BoolVar(&slingForce, "force", false, "Force spawn even if polecat has unread mail")
|
||||||
slingCmd.Flags().StringVar(&slingAccount, "account", "", "Claude Code account handle to use")
|
slingCmd.Flags().StringVar(&slingAccount, "account", "", "Claude Code account handle to use")
|
||||||
slingCmd.Flags().BoolVar(&slingNoConvoy, "no-convoy", false, "Skip auto-convoy creation for single-issue sling")
|
slingCmd.Flags().BoolVar(&slingNoConvoy, "no-convoy", false, "Skip auto-convoy creation for single-issue sling")
|
||||||
|
|||||||
Reference in New Issue
Block a user