Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
OWL2YAMS
Commits
321af9c4f3e3
Commit
321af9c4
authored
Oct 19, 2021
by
Fabien Amarger
Browse files
feat(dry-run): Add dry-run arg
parent
ee8d445e892b
Pipeline
#88910
failed with stages
in 2 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
owl2yams/__init__.py
View file @
321af9c4
...
...
@@ -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
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment