yamlexchange diff
Detects differences between Next Design models and YAML files. The project is not modified.
For YAML files with only partial code, differences will be detected even if nothing changes during import. In this case, please check with yamlexchange import with --dry-run.
Files with multiple models listed on the outermost layer cannot be passed. In this case, please also use yamlexchange import with --dry-run.
Returns (0) if there are no differences, (1) if there are differences, and (2) if it fails. Warnings are not included in the exit code.
Also, a message notifying the command execution result is displayed in the console.
Syntax
yamlexchange diff --project <nproj> --in <yaml> [--model <id or path>] [--report <path>]
Options
-
--project <nproj>(required) Specify the Next Design project file (.nproj). -
--in <yaml>(required) Specify the YAML files to compare. For split YAML files, specify the main file. -
--model <id or path>Specify the model to compare. Only the part of the YAML file corresponding to that model will be compared.
See How to write commands for details on how to specify models.
--report <path>
This command writes the execution results to a JSON file. See Execution Report for details.