tsv option columnNames projectTags
This commit is contained in:
parent
5cf03927b6
commit
770effe16a
6
orcli
6
orcli
|
@ -1300,8 +1300,9 @@ orcli_import_tsv_command() {
|
|||
options+='"storeBlankCellsAsNulls": false'
|
||||
fi
|
||||
if [[ ${args[--columnNames]} ]]; then
|
||||
IFS=',' read -ra columnNames <<< "${args[--columnNames]}"
|
||||
options+=', '
|
||||
options+="\"columnNames\": \"[${args[--columnNames]}\"]"
|
||||
options+="\"columnNames\": [ $(printf ',"'%s'"' "${columnNames[@]}" | cut -c2-) ]"
|
||||
fi
|
||||
if [[ ${args[--guessCellValueTypes]} ]]; then
|
||||
options+=', '
|
||||
|
@ -1352,8 +1353,9 @@ orcli_import_tsv_command() {
|
|||
options+='"trimStrings": true'
|
||||
fi
|
||||
if [[ ${args[--projectTags]} ]]; then
|
||||
IFS=',' read -ra projectTags <<< "${args[--projectTags]}"
|
||||
options+=', '
|
||||
options+="\"projectTags\": \"[${args[--projectTags]}\"]"
|
||||
options+="\"projectTags\": [ $(printf ',"'%s'"' "${projectTags[@]}" | cut -c2-) ]"
|
||||
fi
|
||||
options+=' }'
|
||||
data+=("options=${options}")
|
||||
|
|
|
@ -24,8 +24,9 @@ if [[ ${args[--blankCellsAsStrings]} ]]; then
|
|||
options+='"storeBlankCellsAsNulls": false'
|
||||
fi
|
||||
if [[ ${args[--columnNames]} ]]; then
|
||||
IFS=',' read -ra columnNames <<< "${args[--columnNames]}"
|
||||
options+=', '
|
||||
options+="\"columnNames\": \"[${args[--columnNames]}\"]"
|
||||
options+="\"columnNames\": [ $(printf ',"'%s'"' "${columnNames[@]}" | cut -c2-) ]"
|
||||
fi
|
||||
if [[ ${args[--guessCellValueTypes]} ]]; then
|
||||
options+=', '
|
||||
|
@ -76,8 +77,9 @@ if [[ ${args[--trimStrings]} ]]; then
|
|||
options+='"trimStrings": true'
|
||||
fi
|
||||
if [[ ${args[--projectTags]} ]]; then
|
||||
IFS=',' read -ra projectTags <<< "${args[--projectTags]}"
|
||||
options+=', '
|
||||
options+="\"projectTags\": \"[${args[--projectTags]}\"]"
|
||||
options+="\"projectTags\": [ $(printf ',"'%s'"' "${projectTags[@]}" | cut -c2-) ]"
|
||||
fi
|
||||
options+=' }'
|
||||
data+=("options=${options}")
|
||||
|
|
Loading…
Reference in New Issue