cli: make bundled help self-describing
This commit is contained in:
@@ -21,6 +21,13 @@ func newRenewCmd(root *rootOptions) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "renew",
|
||||
Short: "Extend an existing lease",
|
||||
Long: helpLong(
|
||||
"Use renew to extend an active worker lease on one claimed thread.",
|
||||
"renew only applies when the caller already owns the active lease.",
|
||||
"Use renew for long-running work instead of risking lease expiry mid-execution.",
|
||||
),
|
||||
Example: ` inbox --db .agents/coord.db renew --agent worker-a --thread thr_123
|
||||
inbox --db .agents/coord.db renew --agent worker-a --thread thr_123 --lease-seconds 1800`,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
ctx := cmd.Context()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user