Files
zooqueen 12ee47043b datastore: eliminate ALL clickhouse references from the product (no clickhouse, period)
Comprehensive removal across the compiled-product surface (src/programs/base/cmake/configs,
excl contrib third-party + unit tests): URLs clickhouse.com/.tech/.cloud -> hanzo.ai and
github.com/ClickHouse/ClickHouse -> github.com/hanzoai/datastore; fs/zk paths /var/lib/clickhouse
-> /var/lib/datastore, /clickhouse/tables -> /datastore/tables; SQL dict-source keyword
"clickhouse" -> "datastore" (SOURCE(DATASTORE(...)), forwards-only); .clickhouse.hash ELF section
-> .datastore.hash (main.cpp + CMake); hasClickhouse/Clickhouse symbols -> Datastore; all remaining
lowercase clickhouse -> datastore. 175 files. contrib/ (upstream deps) untouched. Build-verify since
this changes the SQL keyword, default paths and the binary-hash section.
2026-06-22 16:33:18 -07:00

35 lines
1014 B
Plaintext

[[ -v $_DATASTORE_COMPLETION_LOADED ]] || source "$(dirname "${BASH_SOURCE[0]}")/datastore-bootstrap"
function _datastore_get_utils()
{
local cmd=$1 && shift
"$cmd" help |& awk '/^datastore.*args/ { print $2 }'
}
function _complete_for_datastore_entrypoint_bin()
{
local cur prev cword words
eval local cmd="$( _datastore_quote "$1" )"
_datastore_bin_exist "$cmd" || return 0
COMPREPLY=()
_get_comp_words_by_ref cur prev cword words
local util="$cur"
# complete utils, until it will be finished
if [[ $cword -lt 2 ]]; then
COMPREPLY=( $(compgen -W "$(_datastore_get_utils "$cmd")" -- "$cur") )
return
fi
util="${words[1]}"
if _complete_for_datastore_generic_bin_impl "$prev"; then
COMPREPLY=( $(compgen -W "$(_datastore_get_options "$cmd" "$util")" -- "$cur") )
fi
return 0
}
_complete_datastore_generic datastore _complete_for_datastore_entrypoint_bin
_complete_datastore_generic ch _complete_for_datastore_entrypoint_bin