Skip to content

Commit

Permalink
Added build-schema --version operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Aberdur committed Feb 7, 2025
1 parent abd6c97 commit 9335f87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions relecov_tools/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,11 +706,12 @@ def pipeline_manager(input, template, output, config, folder_names):
is_flag=True,
help="Prints a changelog/diff between the base and incoming versions of the schema.",
)
@click.option('--version', help='Specify the schema version.')
@click.option("-o", "--out_dir", type=click.Path(), help="Path to save output file/s")
def build_schema(input_file, schema_base, draft_version, diff, out_dir):
def build_schema(input_file, schema_base, draft_version, diff, out_dir, version):
"""Generates and updates JSON Schema files from Excel-based database definitions."""
schema_update = relecov_tools.build_schema.SchemaBuilder(
input_file, schema_base, draft_version, diff, out_dir
input_file, schema_base, draft_version, diff, out_dir, version
)
try:
schema_update.handle_build_schema()
Expand Down

0 comments on commit 9335f87

Please sign in to comment.