From 672fc981d856553c9115f7ea1d003cbd23a69904 Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Thu, 14 Apr 2022 00:04:35 +0200 Subject: [PATCH] update examples --- README.md | 14 +++++++------- orcli | 6 ++++-- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 42532a4..9fa5b51 100644 --- a/README.md +++ b/README.md @@ -51,8 +51,9 @@ Usage: orcli --version | -v Commands: - info show project metadata - list list projects on OpenRefine server + info show project metadata + import import commands + list list projects on OpenRefine server Options: --help, -h @@ -66,13 +67,12 @@ Environment Variables: URL to OpenRefine server Default: http://localhost:3333 - OPENREFINE_CSRF - set to false for OpenRefine < 3.3 - Default: true - Examples: orcli list - orcli info clipboard + orcli import csv file + orcli import csv + "https://github.com/LibraryCarpentry/lc-open-refine/raw/gh-pages/data/doaj-article-sample.csv" + orcli info Clipboard orcli info 1234567890123 https://github.com/opencultureconsulting/orcli diff --git a/orcli b/orcli index 0485883..fcfa58c 100755 --- a/orcli +++ b/orcli @@ -62,6 +62,7 @@ orcli_usage() { printf " orcli list\n" printf " orcli import csv file\n" + printf " orcli import csv\n \"https://github.com/LibraryCarpentry/lc-open-refine/raw/gh-pages/data/doaj-article-sample.csv\"\n" printf " orcli info Clipboard\n" printf " orcli info 1234567890123\n" echo @@ -194,7 +195,7 @@ orcli_import_csv_usage() { # :argument.usage echo " FILE..." - printf " Path to one or more files. When FILE is -, read standard input.\n" + printf " Path to one or more files or URLs. When FILE is -, read standard input.\n" printf " Default: -\n" echo @@ -203,7 +204,8 @@ orcli_import_csv_usage() { printf " orcli import csv file\n" printf " cat file | orcli import csv\n" - printf " orcli import csv --separator ; --encoding ISO-8859-1 --trimStrings\n --projectName example\n" + printf " orcli import csv file --separator ; --encoding ISO-8859-1 --trimStrings\n --projectName example\n" + printf " orcli import csv\n \"https://github.com/LibraryCarpentry/lc-open-refine/raw/gh-pages/data/doaj-article-sample.csv\"\n" echo fi