You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
filename Path to the plain file to render. The directory containing this file has highest precedence for template loading, so you can place custom templates here to override the defaults. See --template-dir
15
-
for more details about template loading.
17
+
filename Path to the plain file to render. The directory containing this file has highest precedence for template loading, so
18
+
you can place custom templates here to override the defaults. See --template-dir for more details about template
19
+
loading.
16
20
17
21
options:
18
22
-h, --help show this help message and exit
@@ -24,49 +28,58 @@ options:
24
28
--log-to-file, --no-log-to-file
25
29
Enable logging to a file. Defaults to True. Set to False to disable.
26
30
--log-file-name LOG_FILE_NAME
27
-
Name of the log file. Defaults to 'codeplain.log'.Always resolved relative to the plain file directory.If file on this path already exists, the already existing log file will be overwritten by the
28
-
current logs.
31
+
Name of the log file. Defaults to 'codeplain.log'.Always resolved relative to the plain file directory.If file on
32
+
this path already exists, the already existing log file will be overwritten by the current logs.
29
33
--render-range RENDER_RANGE
30
-
Specify a range of functionalities to render (e.g. `1` , `2`, `3`). Use comma to separate start and end IDs. If only one ID is provided, only that requirement is rendered. Range is
31
-
inclusive of both start and end IDs.
34
+
Specify a range of functionalities to render (e.g. `1` , `2`, `3`). Use comma to separate start and end IDs. If only
35
+
one functionality ID is provided, only that functionality is rendered. Range is inclusive of both start and end IDs.
32
36
--render-from RENDER_FROM
33
-
Continue generation starting from this specific functionality (e.g. `2`). The requirement with this ID will be included in the output. The ID must match one of the functionalities
34
-
in your plain file.
37
+
Continue generation starting from this specific functionality (e.g. `2`). The functionality with this ID will be
38
+
included in the output. The functionality ID must match one of the functionalities in your plain file.
35
39
--force-render Force re-render of all the required modules.
36
40
--unittests-script UNITTESTS_SCRIPT
37
-
Shell script to run unit tests on generated code. Receives the build folder path as its first argument (default: 'plain_modules').
41
+
Shell script to run unit tests on generated code. Receives the build folder path as its first argument (default:
Path to conformance tests shell script. Every conformance test script should accept two arguments: 1) Path to a folder (e.g. `plain_modules/module_name`) containing generated source code, 2) Path
42
-
to a subfolder of the conformance tests folder (e.g. `conformance_tests/subfoldername`) containing test files.
46
+
Path to conformance tests shell script. Every conformance test script should accept two arguments: 1) Path to a
47
+
folder (e.g. `plain_modules/module_name`) containing generated source code, 2) Path to a subfolder of the conformance
48
+
tests folder (e.g. `conformance_tests/subfoldername`) containing test files.
Path to a shell script that prepares the testing environment. The script should accept the source code folder path as its first argument.
50
+
Path to a shell script that prepares the testing environment. The script should accept the source code folder path as
51
+
its first argument.
45
52
--test-script-timeout TEST_SCRIPT_TIMEOUT
46
53
Timeout for test scripts in seconds. If not provided, the default timeout of 120 seconds is used.
47
54
--api [API] Alternative base URL for the API. Default: `https://api.codeplain.ai`
48
55
--api-key API_KEY API key used to access the API. If not provided, the `CODEPLAIN_API_KEY` environment variable is used.
49
-
--full-plain Full preview ***plain specification before code generation.Use when you want to preview context of all ***plain primitives that are going to be included in order to render the given module.
56
+
--full-plain Full preview ***plain specification before code generation.Use when you want to preview context of all ***plain
57
+
primitives that are going to be included in order to render the given module.
50
58
--dry-run Dry run preview of the code generation (without actually making any changes).
51
59
--replay-with REPLAY_WITH
52
60
--template-dir TEMPLATE_DIR
53
-
Path to a custom template directory. Templates are searched in the following order: 1) Directory containing the plain file, 2) Custom template directory (if provided through this argument), 3)
54
-
Built-in standard_template_library directory
55
-
--copy-build If set, copy the rendered contents of code in `--base-folder` folder to `--build-dest` folder after successful rendering.
61
+
Path to a custom template directory. Templates are searched in the following order: 1) Directory containing the plain
62
+
file, 2) Custom template directory (if provided through this argument), 3) Built-in standard_template_library
63
+
directory
64
+
--copy-build If set, copy the rendered contents of code in `--base-folder` folder to `--build-dest` folder after successful
65
+
rendering.
56
66
--build-dest BUILD_DEST
57
67
Target folder to copy rendered contents of code to (used only if --copy-build is set).
58
68
--copy-conformance-tests
59
-
If set, copy the conformance tests of code in `--conformance-tests-folder` folder to `--conformance-tests-dest` folder successful rendering. Requires --conformance-tests-script.
69
+
If set, copy the conformance tests of code in `--conformance-tests-folder` folder to `--conformance-tests-dest`
0 commit comments