Skip to content

Commit

Permalink
documented validate
Browse files Browse the repository at this point in the history
  • Loading branch information
frehburg committed Sep 4, 2024
1 parent f26a17e commit 271031a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/rarelink_phenopacket_mapper/cli/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@


def main(args):
"""This method launches the validate command"""
"""Validate Command: syntactically validates phenopackets using phenopacket-tools.
Run `validate -h` for help."""
arg_parser = argparse.ArgumentParser(
prog='validate',
description='syntactically validates phenopackets using phenopacket-tools'
Expand All @@ -23,6 +25,11 @@ def main(args):
validate(path)


def validate(path: Path):
def validate(path: Path) -> bool:
"""
Validate phenopackets using phenopacket-tools.
:param path: Path to Phenopackets
:return: True if the phenopackets are valid, False otherwise
"""
print(f"{path=}")
raise NotImplementedError("The function mapping has not been implemented yet")

0 comments on commit 271031a

Please sign in to comment.