From dc6b325dd2f6670d3f94a13578725c7cf54bf603 Mon Sep 17 00:00:00 2001 From: felixlohmeier Date: Thu, 6 Oct 2022 11:35:34 +0000 Subject: [PATCH] update README --- README.md | 24 +++++++++++++----------- orcli | 8 ++++---- src/bashly.yml | 38 +++++++++++++++++++------------------- 3 files changed, 36 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index a2884e5..d4695eb 100644 --- a/README.md +++ b/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 ``` diff --git a/orcli b/orcli index ccfa331..b3481d3 100755 --- a/orcli +++ b/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 diff --git a/src/bashly.yml b/src/bashly.yml index 3cbe9c0..2b0ced4 100644 --- a/src/bashly.yml +++ b/src/bashly.yml @@ -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