cli: make bundled help self-describing

This commit is contained in:
2026-03-22 23:37:38 +08:00
parent 5859ff219e
commit 4d8c90eb26
49 changed files with 792 additions and 29 deletions
@@ -23,6 +23,12 @@ func newRetryCmd(root *rootOptions) *cobra.Command {
cmd := &cobra.Command{
Use: "retry",
Short: "Retry a failed task by creating a new attempt",
Long: helpLong(
"Use retry to create a fresh attempt and inbox thread for one failed task.",
"If the previous attempt used a worktree, retry provisions a new worktree from the recorded workspace contract.",
"If the previous attempt was analysis-only, retry stays analysis-only.",
),
Example: ` orch --db .agents/coord.db retry --run blog_mvp_001 --task T7 --to backend-worker --body "Retry after fixing the contract mismatch."`,
RunE: func(cmd *cobra.Command, args []string) error {
body, err := resolveBodyValue(opts.body, opts.bodyFile)
if err != nil {