Commit 321af9c4 authored by Fabien Amarger's avatar Fabien Amarger
Browse files

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

parent ee8d445e892b
Pipeline #88910 failed with stages
in 2 minutes and 48 seconds
......@@ -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}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment