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