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,13 @@ func newAnswerCmd(root *rootOptions) *cobra.Command {
cmd := &cobra.Command{
Use: "answer",
Short: "Answer the active blocked question for a task",
Long: helpLong(
"Use answer to write one response back into the active blocked attempt thread for a task.",
"Use body for human-readable guidance, payload-json for structured decisions, or both when workers need a stable machine-readable contract.",
"answer targets the current active blocked attempt for the task; it is not a generic freeform message append.",
),
Example: ` orch --db .agents/coord.db answer --run blog_mvp_001 --task T2 --body "Use stdout for MVP."
orch --db .agents/coord.db answer --run blog_mvp_001 --task T2 --payload-json '{"decision":"stdout","source":"leader"}'`,
RunE: func(cmd *cobra.Command, args []string) error {
body, err := resolveBodyValue(opts.body, opts.bodyFile)
if err != nil {