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 for more details about template loading.
14
+
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.
14
16
15
17
options:
16
18
-h, --help show this help message and exit
@@ -20,41 +22,48 @@ options:
20
22
--build-folder BUILD_FOLDER
21
23
Folder for build files
22
24
--log-to-file, --no-log-to-file
23
-
Enable logging to a file. Defaults to True. Use --no-log-to-file to disable.
25
+
Enable logging to a file. Defaults to True. Set to False to disable.
24
26
--log-file-name LOG_FILE_NAME
25
-
Name of the log file. Defaults to 'codeplain.log'.Always resolved relative to the plain file directory.If file on this path already exists, it will be overwritten by the current logs.
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.
26
29
--render-range RENDER_RANGE
27
-
Specify a range of functional requirements to render (e.g. '1.1,2.3'). Use comma to separate start and end IDs. If only one ID is provided, only that requirement is rendered. Range is inclusive of both start and end IDs.
30
+
Specify a range of functional requirements 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.
28
32
--render-from RENDER_FROM
29
-
Continue generation starting from this specific functional requirement (e.g. '2.1'). The requirement with this ID will be included in the output. The ID must match one of the functional requirements in your plain file.
33
+
Continue generation starting from this specific functional requirement (e.g. `2`). The requirement with this ID will be included in the output. The ID must match one of the functional requirements
34
+
in your plain file.
30
35
--force-render Force re-render of all the required modules.
31
36
--unittests-script UNITTESTS_SCRIPT
32
37
Shell script to run unit tests on generated code. Receives the build folder path as its first argument (default: 'plain_modules').
Path to conformance tests shell script. The script should accept two arguments: 1) First argument: path to a folder (e.g. 'plain_modules/module_name') containing generated source code, 2) Second argument: path to a subfolder of the conformance
37
-
tests folder (e.g. 'conformance_tests/subfoldername') containing test files.
41
+
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.
Path to a shell script that prepares the testing environment. The script should accept the build folder path as its first argument (default: 'plain_modules').
44
+
Path to a shell script that prepares the testing environment. The script should accept the source code folder path as its first argument.
45
+
--test-script-timeout TEST_SCRIPT_TIMEOUT
46
+
Timeout for test scripts in seconds. If not provided, the default timeout of 120 seconds is used.
40
47
--api [API] Alternative base URL for the API. Default: `https://api.codeplain.ai`
41
-
--api-key API_KEY API key used to access the API. If not provided, the CODEPLAIN_API_KEY environment variable is used.
42
-
--full-plain Display the complete plain specification before code generation. This shows your plain file with any included template content expanded. Useful for understanding what content is being processed.
43
-
--dry-run Preview of what Codeplain would do without actually making any changes.
48
+
--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.
50
+
--dry-run Dry run preview of the code generation (without actually making any changes).
44
51
--replay-with REPLAY_WITH
45
52
--template-dir TEMPLATE_DIR
46
-
Path to a custom template directory. Templates are searched in the following order: 1) directory containing the plain file, 2) this custom template directory (if provided), 3) built-in standard_template_library directory
47
-
--copy-build If set, copy the build folder to `--build-dest` after every successful rendering.
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.
48
56
--build-dest BUILD_DEST
49
-
Target folder to copy build output to (used only if --copy-build is set).
57
+
Target folder to copy rendered contents of code to (used only if --copy-build is set).
50
58
--copy-conformance-tests
51
-
If set, copy the conformance tests folderto `--conformance-tests-dest` after every successful rendering. Requires --conformance-tests-script.
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.
52
60
--conformance-tests-dest CONFORMANCE_TESTS_DEST
53
-
Target folder to copy conformance tests output to (used only if --copy-conformance-tests is set).
61
+
Target folder to copy conformance tests of code to (used only if --copy-conformance-tests is set).
54
62
--render-machine-graph
55
63
If set, render the state machine graph.
56
64
--logging-config-path
57
65
Path to the logging configuration file.
66
+
--headless Run in headless mode: no TUI, no terminal output except a single render-started message. All logs are written to the log file.
0 commit comments