foxora

无界面运行

foxora run 执行一条请求,将文本流输出到标准输出,并在失败时返回非零状态。

本页内容4
  1. 步骤
  2. 请求示例
  3. 保存输出
  4. 预期结果

步骤

  1. 从需要检查的项目目录执行。
  2. 为提示词加引号,确保 shell 将其作为单个参数。
  3. 可在 run 后紧接选择 fast、pro 或 max。
  4. 在自动化中捕获输出或检查 $?。

请求示例

终端
foxora run "summarize this repository"
foxora run fast -n "fix the failing test"
foxora run pro --prompt "review this architecture"
foxora run max -n "analyze the hardest unresolved issue"

保存输出

终端
foxora run fast -n "review this diff" > review.txt

预期结果

成功时输出回复并以零退出;不可达或执行失败时返回非零值。

注意: 当前输出为人类可读文本,不提供 --json 契约。不要把终端装饰当作结构化数据解析。