docs: add sync-with-root menu description to CLI reference

This commit is contained in:
nrslib 2026-02-20 19:59:55 +09:00
parent dbdaf93498
commit 3af30e9e18
2 changed files with 6 additions and 2 deletions

View File

@ -164,7 +164,7 @@ takt watch
### takt list
タスクブランチの一覧表示と操作(マージ、削除など)を行います。
タスクブランチの一覧表示と操作(マージ、削除、ルートとの同期など)を行います。
```bash
# タスクブランチの一覧表示(マージ/削除)
@ -177,6 +177,8 @@ takt list --non-interactive --action delete --branch takt/my-branch --yes
takt list --non-interactive --format json
```
インタラクティブモードでは **Sync with root** を選択でき、ルートリポジトリの HEAD をワークツリーブランチにマージします。コンフリクト発生時は AI が自動解決を試みます。
### タスクディレクトリワークフロー(作成 / 実行 / 確認)
1. `takt add` を実行し、`.takt/tasks.yaml` に pending レコードが作成されたことを確認。

View File

@ -164,7 +164,7 @@ takt watch
### takt list
List task branches and perform actions (merge, delete, etc.).
List task branches and perform actions (merge, delete, sync with root, etc.).
```bash
# List task branches (merge/delete)
@ -177,6 +177,8 @@ takt list --non-interactive --action delete --branch takt/my-branch --yes
takt list --non-interactive --format json
```
In interactive mode, **Sync with root** merges the root repository HEAD into the worktree branch with AI-assisted conflict resolution.
### Task Directory Workflow (Create / Run / Verify)
1. Run `takt add` and confirm a pending record is created in `.takt/tasks.yaml`.