Skip to content

Commit

Permalink
fetch & fetchpost: wordsmith <url-column> option description
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
jqnatividad committed Oct 28, 2022
1 parent 3482e1d commit 8a74574
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/cmd/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Fetches data from web services for every row using HTTP Get.
Fetch is integrated with `jql` to directly parse out values from an API JSON response.
The URL column needs to be a fully qualified URL path. Alternatively, you can dynamically
<url-column> needs to be a fully qualified URL path. Alternatively, you can dynamically
construct URLs for each CSV record with the --url-template option (see Examples below).
To use a proxy, please set env vars HTTP_PROXY and HTTPS_PROXY
Expand All @@ -17,7 +17,7 @@ By default, it will connect to a local Redis instance at redis://127.0.0.1:6379/
with a cache expiry Time-to-Live (TTL) of 2,419,200 seconds (28 days),
and cache hits NOT refreshing the TTL of cached values.
Set the env vars QSV_REDIS_CONNSTR, QSV_REDIS_TTL_SECONDS and
Set the environment variables QSV_REDIS_CONNSTR, QSV_REDIS_TTL_SECONDS and
QSV_REDIS_TTL_REFRESH to change default Redis settings.
EXAMPLES USING THE URL-COLUMN ARGUMENT:
Expand Down Expand Up @@ -98,7 +98,7 @@ Usage:
qsv fetch --help
Fetch options:
<url-column> URL column to use.
<url-column> Name of the column with the URL.
Mutually exclusive with --url-template.
--url-template <template> URL template to use. Use column names enclosed with
curly braces to insert the CSV data for a record.
Expand Down
8 changes: 4 additions & 4 deletions src/cmd/fetchpost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ As opposed to fetch, which uses HTTP Get.
Fetchpost is integrated with `jql` to directly parse out values from an API JSON response.
The URL column needs to be a fully qualified URL path. It can be specified as a column name
<url-column> needs to be a fully qualified URL path. It can be specified as a column name
from which the URL value will be retrieved for each record, or as the URL literal itself.
To use a proxy, please set env vars HTTP_PROXY and HTTPS_PROXY
Expand All @@ -21,7 +21,7 @@ and cache hits NOT refreshing the TTL of cached values.
Note that the default values are the same as the fetch command, except fetchpost creates the
cache at database 2, as opposed to database 1 with fetch.
Set the env vars QSV_FP_REDIS_CONNSTR, QSV_FP_REDIS_TTL_SECONDS and
Set the environment variables QSV_FP_REDIS_CONNSTR, QSV_FP_REDIS_TTL_SECONDS and
QSV_FP_REDIS_TTL_REFRESH respectively to change default Redis settings.
EXAMPLES:
Expand Down Expand Up @@ -76,8 +76,8 @@ Usage:
qsv fetchpost --help
Fetch options:
<url-column> If the argument starts with `http`, the URL to use.
Otherwise, the name of the column with the URL.
<url-column> Name of the column with the URL.
Otherwise, if the argument starts with `http`, the URL to use.
<column-list> Comma-delimited list of columns to insert into the HTTP Post body.
Uses `qsv select` syntax - i.e. Columns can be referenced by index or
by name if there is a header row (duplicate column names can be disambiguated
Expand Down

0 comments on commit 8a74574

Please sign in to comment.