Command Line Reference¶
yp-data¶
Usage:
yp-data [options] input-file-name output-file-name
See Data Processor for detail.
- input-file-name¶
Name of an input file. Use
-
to read from STDIN.
- output-file-name¶
Name of an output file. Use
-
to write to STDOUT.
- --include=DIR, -I DIR¶
Add search locations for item specified as relative paths. See also
YP_INCLUDE_PATHS
.
- --define=KEY=VALUE, -D KEY=VALUE¶
Map KEY to VALUE for variable substitutions.
- --undefine=KEY, -U KEY¶
Unmap KEY for variable substitutions.
- --no-environment, -i¶
Do not use environment variables in variable substitutions.
- --unbound-placeholder=VALUE¶
Substitute an unbound variable with VALUE instead of failing. Use
YP_ORIGINAL
as VALUE to leave the original syntax unchanged on unbound variables.
- --no-process-include¶
Do not process include file instructions.
- --no-process-variable¶
Do not process variable substitutions.
- --schema-prefix=PREFIX¶
Prefix for relative path schemas. See also
YP_SCHEMA_PREFIX
.
- --time-format=NAME=FORMAT, --time-format=FORMAT¶
Format for date-time string substitutions. See also
YP_TIME_FORMAT
andYP_TIME_FORMAT_
.
- --time-ref=TIME¶
Reference value for date-time substitutions. See also
YP_TIME_REF_VALUE
.
yp-schema¶
Usage:
yp-schema SCHEMA-FILE CONFIG-FILE
See Schema Processor for detail.
- SCHEMA-FILE¶
Name of the JSON schema file to modularise.
- CONFIG-FILE¶
Name of the configuration file.
Common Options¶
The following options apply to both yp-data and yp-schema commands.
- --help, -h¶
Show help message and exit.
- --version, -V¶
Print version and exit.
Environment Variables¶
- YP_INCLUDE_PATHS¶
Set the search path for include files (that are specified as relative locations). Expect a list of folders/directories in the same syntax as a
PATH
like variable on the relevant platform. (E.g., a colon separated list on Linux/Unix and a semi-colon separated list on Windows.) See Modularisation / Include for more info.
- YP_SCHEMA_PREFIX¶
Set a prefix for relative locations to JSON schema files. See Validation with JSON Schema for more info.
- YP_TIME_FORMAT¶
Set the default time format. See String Value Date-Time Substitution for more info.
- YP_TIME_FORMAT_<NAME>¶
Set a named time format. See String Value Date-Time Substitution for more info.
- YP_TIME_REF_VALUE¶
Set the reference time. Expect an ISO-8601 compliant date-time string. See String Value Date-Time Substitution for more info.