update examples

This commit is contained in:
Felix Lohmeier 2022-04-14 00:04:35 +02:00
parent b59ddd392c
commit 672fc981d8
2 changed files with 11 additions and 9 deletions

View File

@ -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

6
orcli
View File

@ -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