mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-11-07 09:45:36 +00:00
Phase 1 of docs/DESIGN.md: - Output format resolves -o > IDX_OUTPUT > general.output > auto; auto is a table on a terminal and JSON when stdout is piped or captured. `config init` now writes output = "auto". - JSON is pretty only on a terminal and compact otherwise. New `-o jsonl` prints one array item per line with the same key order. - No ANSI color when stdout is not a terminal (direct owo-colors calls now go through output::style). - `stocks quote -` and `stocks compare -` read symbols from stdin. - Exit codes by class: 2 invalid input/config, 3 not found or cache miss, 4 upstream unavailable, 5 unsupported, 1 other. Golden changes are limited to those documented kinds and were verified mechanically: JSON goldens are semantically identical, tables differ only by removed ANSI codes and the column padding comfy-table had reserved for them (cell contents identical), exit codes match each error's class, and help/completions only gain the new --output values. 17 new golden cases cover auto, jsonl, stdin, and the new errors. tests/cli.rs now pins IDX_OUTPUT=table in its harness (its tests assert table text and run piped) and parses discover JSON instead of matching pretty-printed whitespace. Live A/B against main: 16/16 stocks cases identical; ownership discover got IDX 403 on both binaries, now exiting 4 instead of 1 as intended. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2851 lines
97 KiB
Text
2851 lines
97 KiB
Text
exit: 0
|
|
--- stdout
|
|
_idx() {
|
|
local i cur prev opts cmd
|
|
COMPREPLY=()
|
|
if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
|
|
cur="$2"
|
|
else
|
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
fi
|
|
prev="$3"
|
|
cmd=""
|
|
opts=""
|
|
|
|
for i in "${COMP_WORDS[@]:0:COMP_CWORD}"
|
|
do
|
|
case "${cmd},${i}" in
|
|
",$1")
|
|
cmd="idx"
|
|
;;
|
|
idx,cache)
|
|
cmd="idx__cache"
|
|
;;
|
|
idx,completions)
|
|
cmd="idx__completions"
|
|
;;
|
|
idx,config)
|
|
cmd="idx__config"
|
|
;;
|
|
idx,help)
|
|
cmd="idx__help"
|
|
;;
|
|
idx,ownership)
|
|
cmd="idx__ownership"
|
|
;;
|
|
idx,stocks)
|
|
cmd="idx__stocks"
|
|
;;
|
|
idx,version)
|
|
cmd="idx__version"
|
|
;;
|
|
idx__cache,clear)
|
|
cmd="idx__cache__clear"
|
|
;;
|
|
idx__cache,help)
|
|
cmd="idx__cache__help"
|
|
;;
|
|
idx__cache,info)
|
|
cmd="idx__cache__info"
|
|
;;
|
|
idx__cache__help,clear)
|
|
cmd="idx__cache__help__clear"
|
|
;;
|
|
idx__cache__help,help)
|
|
cmd="idx__cache__help__help"
|
|
;;
|
|
idx__cache__help,info)
|
|
cmd="idx__cache__help__info"
|
|
;;
|
|
idx__config,get)
|
|
cmd="idx__config__get"
|
|
;;
|
|
idx__config,help)
|
|
cmd="idx__config__help"
|
|
;;
|
|
idx__config,init)
|
|
cmd="idx__config__init"
|
|
;;
|
|
idx__config,path)
|
|
cmd="idx__config__path"
|
|
;;
|
|
idx__config,set)
|
|
cmd="idx__config__set"
|
|
;;
|
|
idx__config__help,get)
|
|
cmd="idx__config__help__get"
|
|
;;
|
|
idx__config__help,help)
|
|
cmd="idx__config__help__help"
|
|
;;
|
|
idx__config__help,init)
|
|
cmd="idx__config__help__init"
|
|
;;
|
|
idx__config__help,path)
|
|
cmd="idx__config__help__path"
|
|
;;
|
|
idx__config__help,set)
|
|
cmd="idx__config__help__set"
|
|
;;
|
|
idx__help,cache)
|
|
cmd="idx__help__cache"
|
|
;;
|
|
idx__help,completions)
|
|
cmd="idx__help__completions"
|
|
;;
|
|
idx__help,config)
|
|
cmd="idx__help__config"
|
|
;;
|
|
idx__help,help)
|
|
cmd="idx__help__help"
|
|
;;
|
|
idx__help,ownership)
|
|
cmd="idx__help__ownership"
|
|
;;
|
|
idx__help,stocks)
|
|
cmd="idx__help__stocks"
|
|
;;
|
|
idx__help,version)
|
|
cmd="idx__help__version"
|
|
;;
|
|
idx__help__cache,clear)
|
|
cmd="idx__help__cache__clear"
|
|
;;
|
|
idx__help__cache,info)
|
|
cmd="idx__help__cache__info"
|
|
;;
|
|
idx__help__config,get)
|
|
cmd="idx__help__config__get"
|
|
;;
|
|
idx__help__config,init)
|
|
cmd="idx__help__config__init"
|
|
;;
|
|
idx__help__config,path)
|
|
cmd="idx__help__config__path"
|
|
;;
|
|
idx__help__config,set)
|
|
cmd="idx__help__config__set"
|
|
;;
|
|
idx__help__ownership,changes)
|
|
cmd="idx__help__ownership__changes"
|
|
;;
|
|
idx__help__ownership,concentration)
|
|
cmd="idx__help__ownership__concentration"
|
|
;;
|
|
idx__help__ownership,cross-holders)
|
|
cmd="idx__help__ownership__cross__holders"
|
|
;;
|
|
idx__help__ownership,discover)
|
|
cmd="idx__help__ownership__discover"
|
|
;;
|
|
idx__help__ownership,entity)
|
|
cmd="idx__help__ownership__entity"
|
|
;;
|
|
idx__help__ownership,flow)
|
|
cmd="idx__help__ownership__flow"
|
|
;;
|
|
idx__help__ownership,graph)
|
|
cmd="idx__help__ownership__graph"
|
|
;;
|
|
idx__help__ownership,import)
|
|
cmd="idx__help__ownership__import"
|
|
;;
|
|
idx__help__ownership,releases)
|
|
cmd="idx__help__ownership__releases"
|
|
;;
|
|
idx__help__ownership,resolve)
|
|
cmd="idx__help__ownership__resolve"
|
|
;;
|
|
idx__help__ownership,search)
|
|
cmd="idx__help__ownership__search"
|
|
;;
|
|
idx__help__ownership,sync)
|
|
cmd="idx__help__ownership__sync"
|
|
;;
|
|
idx__help__ownership,ticker)
|
|
cmd="idx__help__ownership__ticker"
|
|
;;
|
|
idx__help__ownership__resolve,map)
|
|
cmd="idx__help__ownership__resolve__map"
|
|
;;
|
|
idx__help__ownership__resolve,merge)
|
|
cmd="idx__help__ownership__resolve__merge"
|
|
;;
|
|
idx__help__ownership__resolve,unresolved)
|
|
cmd="idx__help__ownership__resolve__unresolved"
|
|
;;
|
|
idx__help__stocks,compare)
|
|
cmd="idx__help__stocks__compare"
|
|
;;
|
|
idx__help__stocks,earnings)
|
|
cmd="idx__help__stocks__earnings"
|
|
;;
|
|
idx__help__stocks,financials)
|
|
cmd="idx__help__stocks__financials"
|
|
;;
|
|
idx__help__stocks,fundamental)
|
|
cmd="idx__help__stocks__fundamental"
|
|
;;
|
|
idx__help__stocks,growth)
|
|
cmd="idx__help__stocks__growth"
|
|
;;
|
|
idx__help__stocks,history)
|
|
cmd="idx__help__stocks__history"
|
|
;;
|
|
idx__help__stocks,insights)
|
|
cmd="idx__help__stocks__insights"
|
|
;;
|
|
idx__help__stocks,news)
|
|
cmd="idx__help__stocks__news"
|
|
;;
|
|
idx__help__stocks,profile)
|
|
cmd="idx__help__stocks__profile"
|
|
;;
|
|
idx__help__stocks,quote)
|
|
cmd="idx__help__stocks__quote"
|
|
;;
|
|
idx__help__stocks,risk)
|
|
cmd="idx__help__stocks__risk"
|
|
;;
|
|
idx__help__stocks,screen)
|
|
cmd="idx__help__stocks__screen"
|
|
;;
|
|
idx__help__stocks,sentiment)
|
|
cmd="idx__help__stocks__sentiment"
|
|
;;
|
|
idx__help__stocks,technical)
|
|
cmd="idx__help__stocks__technical"
|
|
;;
|
|
idx__help__stocks,valuation)
|
|
cmd="idx__help__stocks__valuation"
|
|
;;
|
|
idx__ownership,changes)
|
|
cmd="idx__ownership__changes"
|
|
;;
|
|
idx__ownership,concentration)
|
|
cmd="idx__ownership__concentration"
|
|
;;
|
|
idx__ownership,cross-holders)
|
|
cmd="idx__ownership__cross__holders"
|
|
;;
|
|
idx__ownership,discover)
|
|
cmd="idx__ownership__discover"
|
|
;;
|
|
idx__ownership,entity)
|
|
cmd="idx__ownership__entity"
|
|
;;
|
|
idx__ownership,flow)
|
|
cmd="idx__ownership__flow"
|
|
;;
|
|
idx__ownership,graph)
|
|
cmd="idx__ownership__graph"
|
|
;;
|
|
idx__ownership,help)
|
|
cmd="idx__ownership__help"
|
|
;;
|
|
idx__ownership,import)
|
|
cmd="idx__ownership__import"
|
|
;;
|
|
idx__ownership,releases)
|
|
cmd="idx__ownership__releases"
|
|
;;
|
|
idx__ownership,resolve)
|
|
cmd="idx__ownership__resolve"
|
|
;;
|
|
idx__ownership,search)
|
|
cmd="idx__ownership__search"
|
|
;;
|
|
idx__ownership,sync)
|
|
cmd="idx__ownership__sync"
|
|
;;
|
|
idx__ownership,ticker)
|
|
cmd="idx__ownership__ticker"
|
|
;;
|
|
idx__ownership__help,changes)
|
|
cmd="idx__ownership__help__changes"
|
|
;;
|
|
idx__ownership__help,concentration)
|
|
cmd="idx__ownership__help__concentration"
|
|
;;
|
|
idx__ownership__help,cross-holders)
|
|
cmd="idx__ownership__help__cross__holders"
|
|
;;
|
|
idx__ownership__help,discover)
|
|
cmd="idx__ownership__help__discover"
|
|
;;
|
|
idx__ownership__help,entity)
|
|
cmd="idx__ownership__help__entity"
|
|
;;
|
|
idx__ownership__help,flow)
|
|
cmd="idx__ownership__help__flow"
|
|
;;
|
|
idx__ownership__help,graph)
|
|
cmd="idx__ownership__help__graph"
|
|
;;
|
|
idx__ownership__help,help)
|
|
cmd="idx__ownership__help__help"
|
|
;;
|
|
idx__ownership__help,import)
|
|
cmd="idx__ownership__help__import"
|
|
;;
|
|
idx__ownership__help,releases)
|
|
cmd="idx__ownership__help__releases"
|
|
;;
|
|
idx__ownership__help,resolve)
|
|
cmd="idx__ownership__help__resolve"
|
|
;;
|
|
idx__ownership__help,search)
|
|
cmd="idx__ownership__help__search"
|
|
;;
|
|
idx__ownership__help,sync)
|
|
cmd="idx__ownership__help__sync"
|
|
;;
|
|
idx__ownership__help,ticker)
|
|
cmd="idx__ownership__help__ticker"
|
|
;;
|
|
idx__ownership__help__resolve,map)
|
|
cmd="idx__ownership__help__resolve__map"
|
|
;;
|
|
idx__ownership__help__resolve,merge)
|
|
cmd="idx__ownership__help__resolve__merge"
|
|
;;
|
|
idx__ownership__help__resolve,unresolved)
|
|
cmd="idx__ownership__help__resolve__unresolved"
|
|
;;
|
|
idx__ownership__resolve,help)
|
|
cmd="idx__ownership__resolve__help"
|
|
;;
|
|
idx__ownership__resolve,map)
|
|
cmd="idx__ownership__resolve__map"
|
|
;;
|
|
idx__ownership__resolve,merge)
|
|
cmd="idx__ownership__resolve__merge"
|
|
;;
|
|
idx__ownership__resolve,unresolved)
|
|
cmd="idx__ownership__resolve__unresolved"
|
|
;;
|
|
idx__ownership__resolve__help,help)
|
|
cmd="idx__ownership__resolve__help__help"
|
|
;;
|
|
idx__ownership__resolve__help,map)
|
|
cmd="idx__ownership__resolve__help__map"
|
|
;;
|
|
idx__ownership__resolve__help,merge)
|
|
cmd="idx__ownership__resolve__help__merge"
|
|
;;
|
|
idx__ownership__resolve__help,unresolved)
|
|
cmd="idx__ownership__resolve__help__unresolved"
|
|
;;
|
|
idx__stocks,compare)
|
|
cmd="idx__stocks__compare"
|
|
;;
|
|
idx__stocks,earnings)
|
|
cmd="idx__stocks__earnings"
|
|
;;
|
|
idx__stocks,financials)
|
|
cmd="idx__stocks__financials"
|
|
;;
|
|
idx__stocks,fundamental)
|
|
cmd="idx__stocks__fundamental"
|
|
;;
|
|
idx__stocks,growth)
|
|
cmd="idx__stocks__growth"
|
|
;;
|
|
idx__stocks,help)
|
|
cmd="idx__stocks__help"
|
|
;;
|
|
idx__stocks,history)
|
|
cmd="idx__stocks__history"
|
|
;;
|
|
idx__stocks,insights)
|
|
cmd="idx__stocks__insights"
|
|
;;
|
|
idx__stocks,news)
|
|
cmd="idx__stocks__news"
|
|
;;
|
|
idx__stocks,profile)
|
|
cmd="idx__stocks__profile"
|
|
;;
|
|
idx__stocks,quote)
|
|
cmd="idx__stocks__quote"
|
|
;;
|
|
idx__stocks,risk)
|
|
cmd="idx__stocks__risk"
|
|
;;
|
|
idx__stocks,screen)
|
|
cmd="idx__stocks__screen"
|
|
;;
|
|
idx__stocks,sentiment)
|
|
cmd="idx__stocks__sentiment"
|
|
;;
|
|
idx__stocks,technical)
|
|
cmd="idx__stocks__technical"
|
|
;;
|
|
idx__stocks,valuation)
|
|
cmd="idx__stocks__valuation"
|
|
;;
|
|
idx__stocks__help,compare)
|
|
cmd="idx__stocks__help__compare"
|
|
;;
|
|
idx__stocks__help,earnings)
|
|
cmd="idx__stocks__help__earnings"
|
|
;;
|
|
idx__stocks__help,financials)
|
|
cmd="idx__stocks__help__financials"
|
|
;;
|
|
idx__stocks__help,fundamental)
|
|
cmd="idx__stocks__help__fundamental"
|
|
;;
|
|
idx__stocks__help,growth)
|
|
cmd="idx__stocks__help__growth"
|
|
;;
|
|
idx__stocks__help,help)
|
|
cmd="idx__stocks__help__help"
|
|
;;
|
|
idx__stocks__help,history)
|
|
cmd="idx__stocks__help__history"
|
|
;;
|
|
idx__stocks__help,insights)
|
|
cmd="idx__stocks__help__insights"
|
|
;;
|
|
idx__stocks__help,news)
|
|
cmd="idx__stocks__help__news"
|
|
;;
|
|
idx__stocks__help,profile)
|
|
cmd="idx__stocks__help__profile"
|
|
;;
|
|
idx__stocks__help,quote)
|
|
cmd="idx__stocks__help__quote"
|
|
;;
|
|
idx__stocks__help,risk)
|
|
cmd="idx__stocks__help__risk"
|
|
;;
|
|
idx__stocks__help,screen)
|
|
cmd="idx__stocks__help__screen"
|
|
;;
|
|
idx__stocks__help,sentiment)
|
|
cmd="idx__stocks__help__sentiment"
|
|
;;
|
|
idx__stocks__help,technical)
|
|
cmd="idx__stocks__help__technical"
|
|
;;
|
|
idx__stocks__help,valuation)
|
|
cmd="idx__stocks__help__valuation"
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
done
|
|
|
|
case "${cmd}" in
|
|
idx)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help stocks config cache ownership completions version help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__cache)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help info clear help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__cache__clear)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__cache__help)
|
|
opts="info clear help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__cache__help__clear)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__cache__help__help)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__cache__help__info)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__cache__info)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__completions)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help bash zsh fish"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__config)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help init get set path help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__config__get)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help <KEY>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__config__help)
|
|
opts="init get set path help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__config__help__get)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__config__help__help)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__config__help__init)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__config__help__path)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__config__help__set)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__config__init)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__config__path)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__config__set)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help <KEY> <VALUE>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help)
|
|
opts="stocks config cache ownership completions version help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__cache)
|
|
opts="info clear"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__cache__clear)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__cache__info)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__completions)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__config)
|
|
opts="init get set path"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__config__get)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__config__init)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__config__path)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__config__set)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__help)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership)
|
|
opts="discover import sync ticker entity search cross-holders concentration flow changes graph resolve releases"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership__changes)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership__concentration)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership__cross__holders)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership__discover)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership__entity)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership__flow)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership__graph)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership__import)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership__releases)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership__resolve)
|
|
opts="unresolved map merge"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership__resolve__map)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 5 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership__resolve__merge)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 5 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership__resolve__unresolved)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 5 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership__search)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership__sync)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__ownership__ticker)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__stocks)
|
|
opts="quote history technical growth valuation risk fundamental profile financials earnings sentiment insights news screen compare"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__stocks__compare)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__stocks__earnings)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__stocks__financials)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__stocks__fundamental)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__stocks__growth)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__stocks__history)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__stocks__insights)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__stocks__news)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__stocks__profile)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__stocks__quote)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__stocks__risk)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__stocks__screen)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__stocks__sentiment)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__stocks__technical)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__stocks__valuation)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__help__version)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help discover import sync ticker entity search cross-holders concentration flow changes graph resolve releases help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__changes)
|
|
opts="-o -q -v -h --from --to --output --no-color --quiet --verbose --offline --no-cache --help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--from)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--to)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__concentration)
|
|
opts="-o -q -v -h --by --top --output --no-color --quiet --verbose --offline --no-cache --help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--by)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--top)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__cross__holders)
|
|
opts="-o -q -v -h --top --min-tickers --output --no-color --quiet --verbose --offline --no-cache --help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--top)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--min-tickers)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__discover)
|
|
opts="-o -q -v -h --family --limit --output --no-color --quiet --verbose --offline --no-cache --help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--family)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--limit)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__entity)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help <NAME>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__flow)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help <SYMBOL>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__graph)
|
|
opts="-o -q -v -h --depth --format --output --no-color --quiet --verbose --offline --no-cache --help <ROOT>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--depth)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--format)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help)
|
|
opts="discover import sync ticker entity search cross-holders concentration flow changes graph resolve releases help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__changes)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__concentration)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__cross__holders)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__discover)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__entity)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__flow)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__graph)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__help)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__import)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__releases)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__resolve)
|
|
opts="unresolved map merge"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__resolve__map)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 5 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__resolve__merge)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 5 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__resolve__unresolved)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 5 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__search)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__sync)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__help__ticker)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__import)
|
|
opts="-o -q -v -h --url --file --fetch-bing --force --output --no-color --quiet --verbose --offline --no-cache --help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--url)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--file)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--fetch-bing)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__releases)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__resolve)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help unresolved map merge help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__resolve__help)
|
|
opts="unresolved map merge help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__resolve__help__help)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 5 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__resolve__help__map)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 5 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__resolve__help__merge)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 5 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__resolve__help__unresolved)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 5 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__resolve__map)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help <ALIAS> <ENTITY>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__resolve__merge)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help <KEEP> <MERGE>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__resolve__unresolved)
|
|
opts="-o -q -v -h --limit --output --no-color --quiet --verbose --offline --no-cache --help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--limit)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__search)
|
|
opts="-o -q -v -h --limit --output --no-color --quiet --verbose --offline --no-cache --help <QUERY>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--limit)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__sync)
|
|
opts="-o -q -v -h --manifest --force --output --no-color --quiet --verbose --offline --no-cache --help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--manifest)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__ownership__ticker)
|
|
opts="-o -q -v -h --source --output --no-color --quiet --verbose --offline --no-cache --help <SYMBOL>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--source)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help quote history technical growth valuation risk fundamental profile financials earnings sentiment insights news screen compare help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__compare)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help <SYMBOLS>..."
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__earnings)
|
|
opts="-o -q -v -h --forecast --history --annual --quarterly --output --no-color --quiet --verbose --offline --no-cache --help <SYMBOL>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__financials)
|
|
opts="-o -q -v -h --statement --output --no-color --quiet --verbose --offline --no-cache --help <SYMBOL>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--statement)
|
|
COMPREPLY=($(compgen -W "income balance cashflow" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__fundamental)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help <SYMBOL>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__growth)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help <SYMBOL>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help)
|
|
opts="quote history technical growth valuation risk fundamental profile financials earnings sentiment insights news screen compare help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help__compare)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help__earnings)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help__financials)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help__fundamental)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help__growth)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help__help)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help__history)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help__insights)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help__news)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help__profile)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help__quote)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help__risk)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help__screen)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help__sentiment)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help__technical)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__help__valuation)
|
|
opts=""
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__history)
|
|
opts="-o -q -v -h --period --interval --history-provider --output --no-color --quiet --verbose --offline --no-cache --help <SYMBOL>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--period)
|
|
COMPREPLY=($(compgen -W "1d 5d 1mo 3mo 6mo 1y 2y 5y" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
--interval)
|
|
COMPREPLY=($(compgen -W "1d 1wk 1mo" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
--history-provider)
|
|
COMPREPLY=($(compgen -W "auto yahoo msn" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__insights)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help <SYMBOL>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__news)
|
|
opts="-o -q -v -h --limit --output --no-color --quiet --verbose --offline --no-cache --help <SYMBOL>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--limit)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__profile)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help <SYMBOL>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__quote)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help <SYMBOLS>..."
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__risk)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help <SYMBOL>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__screen)
|
|
opts="-o -q -v -h --filter --region --limit --output --no-color --quiet --verbose --offline --no-cache --help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--filter)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--region)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--limit)
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
return 0
|
|
;;
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__sentiment)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help <SYMBOL>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__technical)
|
|
opts="-o -q -v -h --history-provider --output --no-color --quiet --verbose --offline --no-cache --help <SYMBOL>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--history-provider)
|
|
COMPREPLY=($(compgen -W "auto yahoo msn" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__stocks__valuation)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help <SYMBOL>"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
idx__version)
|
|
opts="-o -q -v -h --output --no-color --quiet --verbose --offline --no-cache --help"
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
fi
|
|
case "${prev}" in
|
|
--output)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
-o)
|
|
COMPREPLY=($(compgen -W "auto table json jsonl" -- "${cur}"))
|
|
return 0
|
|
;;
|
|
*)
|
|
COMPREPLY=()
|
|
;;
|
|
esac
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
return 0
|
|
;;
|
|
esac
|
|
}
|
|
|
|
if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then
|
|
complete -F _idx -o nosort -o bashdefault -o default idx
|
|
else
|
|
complete -F _idx -o bashdefault -o default idx
|
|
fi
|
|
--- stderr
|