Skip to content
Snippets Groups Projects
Commit 321af9c4f3e3 authored by Fabien Amarger's avatar Fabien Amarger
Browse files

feat(dry-run): Add dry-run arg

parent ee8d445e892b
No related branches found
No related tags found
No related merge requests found
Pipeline #88910 failed
......@@ -153,6 +153,12 @@
default="turtle",
help="Specify the OWL file serialization",
)
parser.add_argument(
"--dry-run",
"-d",
action="store_true",
help="Print the YAMS schema only",
)
args = parser.parse_args()
......@@ -161,6 +167,10 @@
schema = owl_model_to_yams(owl_model, args.instance_name)
if args.dry_run:
print(serialize_to_python(schema))
exit(0)
cube_name = args.instance_name.replace("_", "-")
cube_master_folder = f"cubicweb-{cube_name}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment