fix(scripts): forward retrieval summary options in both shells

This commit is contained in:
Julian lechner committed 2026-09-17 15:27:03 +02:00
1 parent 5ca0dcfb53
commit 6ce4fcc848
4 files changed
+5 -3

No files matched your search

+2 -1
View File
@@ -1,8 +1,9 @@
sync_semantic_retrieval() {
local root=$1 client=$2 home_path=$3 enabled=$4 dry_run=$5 update=$6
local root=$1 client=$2 home_path=$3 enabled=$4 dry_run=$5 update=$6 summary=${7:-false}
[ "$enabled" = true ] || [ -f "$home_path/.my-ai-configuration/semantic-retrieval.json" ] || return 0
local arguments=("$root/scripts/lib/semantic-retrieval.py" sync --root "$root" --home "$home_path" --client "$client" --enabled "$enabled")
[ "$dry_run" != true ] || arguments+=(--dry-run)
[ "$update" != true ] || arguments+=(--update)
[ "$summary" != true ] || arguments+=(--summary)
python3 "${arguments[@]}"
}