Merge pull request #63 from opencultureconsulting:felixlohmeier/batch-use-heredoc-58
update README
This commit is contained in:
commit
27eae58073
24
README.md
24
README.md
|
@ -51,16 +51,17 @@ $ orcli --help
|
|||
orcli - OpenRefine command-line interface written in Bash
|
||||
|
||||
Usage:
|
||||
orcli [command]
|
||||
orcli [command] --help | -h
|
||||
orcli COMMAND
|
||||
orcli [COMMAND] --help | -h
|
||||
orcli --version | -v
|
||||
|
||||
Commands:
|
||||
batch start tmp OpenRefine workspace and run multiple orcli commands
|
||||
import import commands
|
||||
list list projects on OpenRefine server
|
||||
info show project metadata
|
||||
export export commands
|
||||
completions Generate bash completions
|
||||
batch run tmp OpenRefine workspace and execute shell script
|
||||
import import commands
|
||||
list list projects on OpenRefine server
|
||||
info show project metadata
|
||||
export export commands
|
||||
|
||||
Options:
|
||||
--help, -h
|
||||
|
@ -80,10 +81,11 @@ Examples:
|
|||
orcli info "duplicates"
|
||||
orcli export tsv "duplicates"
|
||||
orcli export tsv "duplicates" --output "duplicates.tsv"
|
||||
orcli batch \
|
||||
import csv "https://git.io/fj5hF" --projectName "duplicates" \
|
||||
info "duplicates" \
|
||||
export tsv "duplicates"
|
||||
orcli batch << EOF
|
||||
orcli import csv "https://git.io/fj5hF" --projectName "duplicates"
|
||||
orcli info "duplicates"
|
||||
orcli export tsv "duplicates"
|
||||
EOF
|
||||
|
||||
https://github.com/opencultureconsulting/orcli
|
||||
```
|
||||
|
|
8
orcli
8
orcli
|
@ -70,7 +70,7 @@ orcli_usage() {
|
|||
printf " orcli info \"duplicates\"\n"
|
||||
printf " orcli export tsv \"duplicates\"\n"
|
||||
printf " orcli export tsv \"duplicates\" --output \"duplicates.tsv\"\n"
|
||||
printf " orcli batch << EOF\n orcli import csv \"https://git.io/fj5hF\" --projectName \"duplicates\"\n orcli info \"duplicates\"\n orcli export tsv \"duplicates\"\n EOF\n"
|
||||
printf " orcli batch << EOF\n orcli import csv \"https://git.io/fj5hF\" --projectName \"duplicates\"\n orcli info \"duplicates\"\n orcli export tsv \"duplicates\"\n EOF\n"
|
||||
echo
|
||||
|
||||
# :command.footer
|
||||
|
@ -167,9 +167,9 @@ orcli_batch_usage() {
|
|||
|
||||
# :command.usage_examples
|
||||
printf "Examples:\n"
|
||||
printf " orcli batch << EOF\n orcli import csv \"https://git.io/fj5hF\" --projectName \"duplicates\"\n orcli export tsv \"duplicates\"\n EOF\n"
|
||||
printf " orcli batch --memory \"2000M\" --port \"3334\" << EOF\n orcli import csv \"https://git.io/fj5hF\" --projectName \"duplicates\"\n orcli import csv \"https://git.io/fj5hF\" --projectName \"copy\"\n orcli info \"duplicates\"\n orcli info \"copy\"\n orcli export tsv \"duplicates\"\n EOF\n"
|
||||
printf " orcli batch --quiet << EOF\n orcli import csv \"https://git.io/fj5hF\" --projectName \"duplicates\" &\n orcli import csv \"https://git.io/fj5hF\" --projectName \"copy\" &\n wait\n echo \"finished import\"\n orcli export csv \"duplicates\" --output duplicates.csv &\n orcli export tsv \"duplicates\" --output duplicates.tsv &\n wait\n wc duplicates*\n echo \"finished in $SECONDS seconds\"\n EOF\n"
|
||||
printf " orcli batch << EOF\n orcli import csv \"https://git.io/fj5hF\" --projectName \"duplicates\"\n orcli export tsv \"duplicates\"\n EOF\n"
|
||||
printf " orcli batch --memory \"2000M\" --port \"3334\" << EOF\n orcli import csv \"https://git.io/fj5hF\" --projectName \"duplicates\"\n orcli import csv \"https://git.io/fj5hF\" --projectName \"copy\"\n orcli info \"duplicates\"\n orcli info \"copy\"\n orcli export tsv \"duplicates\"\n EOF\n"
|
||||
printf " orcli batch --quiet << EOF\n orcli import csv \"https://git.io/fj5hF\" --projectName \"duplicates\" &\n orcli import csv \"https://git.io/fj5hF\" --projectName \"copy\" &\n wait\n echo \"finished import\"\n orcli export csv \"duplicates\" --output duplicates.csv &\n orcli export tsv \"duplicates\" --output duplicates.tsv &\n wait\n wc duplicates*\n echo \"finished in $SECONDS seconds\"\n EOF\n"
|
||||
echo
|
||||
|
||||
fi
|
||||
|
|
|
@ -20,9 +20,9 @@ examples:
|
|||
- orcli export tsv "duplicates" --output "duplicates.tsv"
|
||||
- |-
|
||||
orcli batch << EOF
|
||||
orcli import csv "https://git.io/fj5hF" --projectName "duplicates"
|
||||
orcli info "duplicates"
|
||||
orcli export tsv "duplicates"
|
||||
orcli import csv "https://git.io/fj5hF" --projectName "duplicates"
|
||||
orcli info "duplicates"
|
||||
orcli export tsv "duplicates"
|
||||
EOF
|
||||
|
||||
commands:
|
||||
|
@ -53,28 +53,28 @@ commands:
|
|||
examples:
|
||||
- |-
|
||||
orcli batch << EOF
|
||||
orcli import csv "https://git.io/fj5hF" --projectName "duplicates"
|
||||
orcli export tsv "duplicates"
|
||||
orcli import csv "https://git.io/fj5hF" --projectName "duplicates"
|
||||
orcli export tsv "duplicates"
|
||||
EOF
|
||||
- |-
|
||||
orcli batch --memory "2000M" --port "3334" << EOF
|
||||
orcli import csv "https://git.io/fj5hF" --projectName "duplicates"
|
||||
orcli import csv "https://git.io/fj5hF" --projectName "copy"
|
||||
orcli info "duplicates"
|
||||
orcli info "copy"
|
||||
orcli export tsv "duplicates"
|
||||
orcli import csv "https://git.io/fj5hF" --projectName "duplicates"
|
||||
orcli import csv "https://git.io/fj5hF" --projectName "copy"
|
||||
orcli info "duplicates"
|
||||
orcli info "copy"
|
||||
orcli export tsv "duplicates"
|
||||
EOF
|
||||
- |-
|
||||
orcli batch --quiet << EOF
|
||||
orcli import csv "https://git.io/fj5hF" --projectName "duplicates" &
|
||||
orcli import csv "https://git.io/fj5hF" --projectName "copy" &
|
||||
wait
|
||||
echo "finished import"
|
||||
orcli export csv "duplicates" --output duplicates.csv &
|
||||
orcli export tsv "duplicates" --output duplicates.tsv &
|
||||
wait
|
||||
wc duplicates*
|
||||
echo "finished in $SECONDS seconds"
|
||||
orcli import csv "https://git.io/fj5hF" --projectName "duplicates" &
|
||||
orcli import csv "https://git.io/fj5hF" --projectName "copy" &
|
||||
wait
|
||||
echo "finished import"
|
||||
orcli export csv "duplicates" --output duplicates.csv &
|
||||
orcli export tsv "duplicates" --output duplicates.tsv &
|
||||
wait
|
||||
wc duplicates*
|
||||
echo "finished in $SECONDS seconds"
|
||||
EOF
|
||||
|
||||
- name: import
|
||||
|
|
Loading…
Reference in New Issue