Collect

The collect command is used to collect public and consumer schemas from TypeScript files.

collect

Collect public and consumer schemas from TypeScript/Python files. For python packages, use the python import syntax, with .py at the end. For example: For a python file in schemas/test/allschemas.py, use the following command; rejot-cli collect schemas.test.allschemas.py

Examples

$ rejot-cli collect schema1.ts schema2.ts --print
$ rejot-cli collect schema1.ts schema2.ts --write --check
$ rejot-cli collect schema1.allschemas.py --python-executable venv/bin/python

Arguments

schemas required

The schema (TypeScript/Python) files to collect, separated by spaces.

Flags

--log-level option

Set the log level.

Options: "user" | "error" | "warn" | "info" | "debug" | "trace"
Default: "user"
--manifest string

Path to the manifest file to write to.

--write boolean

Write the manifest to the file.

--check boolean

Type check the consumer schemas against the public schemas.

--print boolean

Print the names of the public and consumer schemas.

--verbose boolean

Verbose output.

--python-executable string

The Python executable to use. By default, the command 'python3' is used, which means the local venv will be used if present.

Default: "python3"