9 lines
475 B
Bash
9 lines
475 B
Bash
sync_semantic_retrieval() {
|
|
local root=$1 client=$2 home_path=$3 enabled=$4 dry_run=$5 update=$6
|
|
[ "$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)
|
|
python3 "${arguments[@]}"
|
|
}
|