2022-10-04 21:19:18 +00:00
|
|
|
## [@bashly-upgrade completions send_completions]
|
|
|
|
send_completions() {
|
|
|
|
echo $'# orcli completion -*- shell-script -*-'
|
|
|
|
echo $''
|
|
|
|
echo $'# This bash completions script was generated by'
|
|
|
|
echo $'# completely (https://github.com/dannyben/completely)'
|
|
|
|
echo $'# Modifying it manually is not recommended'
|
|
|
|
echo $''
|
|
|
|
echo $'_orcli_completions_filter() {'
|
|
|
|
echo $' local words="$1"'
|
|
|
|
echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
|
|
|
|
echo $' local result=()'
|
|
|
|
echo $''
|
|
|
|
echo $' if [[ "${cur:0:1}" == "-" ]]; then'
|
|
|
|
echo $' echo "$words"'
|
|
|
|
echo $' '
|
|
|
|
echo $' else'
|
|
|
|
echo $' for word in $words; do'
|
|
|
|
echo $' [[ "${word:0:1}" != "-" ]] && result+=("$word")'
|
|
|
|
echo $' done'
|
|
|
|
echo $''
|
|
|
|
echo $' echo "${result[*]}"'
|
|
|
|
echo $''
|
|
|
|
echo $' fi'
|
|
|
|
echo $'}'
|
|
|
|
echo $''
|
|
|
|
echo $'_orcli_completions() {'
|
|
|
|
echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
|
|
|
|
echo $' local compwords=("${COMP_WORDS[@]:1:$COMP_CWORD-1}")'
|
|
|
|
echo $' local compline="${compwords[*]}"'
|
|
|
|
echo $''
|
|
|
|
echo $' case "$compline" in'
|
2023-01-27 18:04:27 +01:00
|
|
|
echo $' \'export template\'*\'--mode\')'
|
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "rows records")" -- "$cur" )'
|
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
|
|
|
echo $' \'export template\'*)'
|
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--encoding --facets --help --mode --output --prefix --quiet --separator --suffix -h -q")" -- "$cur" )'
|
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
2023-10-28 16:07:08 +00:00
|
|
|
echo $' \'import jsonl\'*)'
|
2023-10-28 21:37:02 +00:00
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--guessCellValueTypes --help --includeArchiveFileName --includeFileSources --limit --projectName --projectTags --quiet --rename --storeEmptyStrings --trimStrings -h -q")" -- "$cur" )'
|
2023-10-28 16:07:08 +00:00
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
2022-10-04 21:19:18 +00:00
|
|
|
echo $' \'completions\'*)'
|
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--help -h")" -- "$cur" )'
|
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
2023-10-28 16:07:08 +00:00
|
|
|
echo $' \'import json\'*)'
|
2023-10-28 21:37:02 +00:00
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--guessCellValueTypes --help --includeArchiveFileName --includeFileSources --limit --projectName --projectTags --quiet --recordPath --rename --storeEmptyStrings --trimStrings -h -q")" -- "$cur" )'
|
2023-10-28 16:07:08 +00:00
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
2022-10-04 21:19:18 +00:00
|
|
|
echo $' \'import csv\'*)'
|
2023-01-09 10:38:53 +00:00
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--blankCellsAsStrings --columnNames --encoding --guessCellValueTypes --headerLines --help --ignoreLines --ignoreQuoteCharacter --includeArchiveFileName --includeFileSources --limit --projectName --projectTags --quiet --quoteCharacter --separator --skipBlankRows --skipDataLines --trimStrings -h -q")" -- "$cur" )'
|
2022-10-04 21:19:18 +00:00
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
2022-11-16 22:22:54 +00:00
|
|
|
echo $' \'import tsv\'*)'
|
2023-01-09 10:38:53 +00:00
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--blankCellsAsStrings --columnNames --encoding --guessCellValueTypes --headerLines --help --ignoreLines --ignoreQuoteCharacter --includeArchiveFileName --includeFileSources --limit --projectName --projectTags --quiet --quoteCharacter --skipBlankRows --skipDataLines --trimStrings -h -q")" -- "$cur" )'
|
2022-11-16 22:22:54 +00:00
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
2022-10-04 21:19:18 +00:00
|
|
|
echo $' \'export tsv\'*)'
|
2023-01-27 18:04:27 +01:00
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--encoding --facets --help --output --quiet -h -q")" -- "$cur" )'
|
2022-10-04 21:19:18 +00:00
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
2022-11-03 21:07:08 +00:00
|
|
|
echo $' \'transform\'*)'
|
2022-11-14 22:46:18 +00:00
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--help --quiet -h -q")" -- "$cur" )'
|
2022-11-03 21:07:08 +00:00
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
2022-12-06 14:38:20 +00:00
|
|
|
echo $' \'delete\'*)'
|
2022-12-13 11:05:18 +00:00
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--force --help --quiet -f -h -q")" -- "$cur" )'
|
2022-12-06 14:38:20 +00:00
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
2022-10-04 21:19:18 +00:00
|
|
|
echo $' \'import\'*)'
|
2023-10-28 16:07:08 +00:00
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--help -h csv json jsonl tsv")" -- "$cur" )'
|
2022-10-04 21:19:18 +00:00
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
2023-10-27 21:12:16 +00:00
|
|
|
echo $' \'search\'*)'
|
2023-10-28 11:53:38 +00:00
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--help --index -h")" -- "$cur" )'
|
2023-10-27 21:12:16 +00:00
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
2022-10-04 21:19:18 +00:00
|
|
|
echo $' \'export\'*)'
|
2023-01-27 18:04:27 +01:00
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--help -h template tsv")" -- "$cur" )'
|
2022-10-04 21:19:18 +00:00
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
|
|
|
echo $' \'list\'*)'
|
2022-10-07 09:02:05 +00:00
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--help -h")" -- "$cur" )'
|
2022-10-04 21:19:18 +00:00
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
|
|
|
echo $' \'info\'*)'
|
2022-10-07 09:02:05 +00:00
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--help -h")" -- "$cur" )'
|
2022-10-04 21:19:18 +00:00
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
2022-11-30 22:49:54 +00:00
|
|
|
echo $' \'test\'*)'
|
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--help -h")" -- "$cur" )'
|
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
2022-10-16 20:36:43 +00:00
|
|
|
echo $' \'run\'*)'
|
2022-11-14 22:46:18 +00:00
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--help --interactive --memory --port --quiet -h -q")" -- "$cur" )'
|
2022-10-16 20:36:43 +00:00
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
2022-10-04 21:19:18 +00:00
|
|
|
echo $' *)'
|
2023-10-27 21:12:16 +00:00
|
|
|
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_orcli_completions_filter "--help --version -h -v completions delete export import info list run search test transform")" -- "$cur" )'
|
2022-10-04 21:19:18 +00:00
|
|
|
echo $' ;;'
|
|
|
|
echo $''
|
|
|
|
echo $' esac'
|
|
|
|
echo $'} &&'
|
|
|
|
echo $'complete -F _orcli_completions orcli'
|
|
|
|
echo $''
|
|
|
|
echo $'# ex: filetype=sh'
|
|
|
|
}
|