Refactored CLI naming

This commit is contained in:
Harrison Deng 2025-01-08 16:55:55 +00:00
parent d580402523
commit 424beeb559
2 changed files with 3 additions and 4 deletions

View File

@ -13,8 +13,7 @@ requires-python = ">=3.11"
description = "A tool to rapidly fetch fetch MLST profiles given sequences for various diseases." description = "A tool to rapidly fetch fetch MLST profiles given sequences for various diseases."
[project.scripts] [project.scripts]
automlst = "automlst.cli.root:cli" automlst = "automlst.cli.root:run"
nsbdiagtk = "automlst.cli.root:cli"
[tool.pyright] [tool.pyright]
extraPaths = ["src"] extraPaths = ["src"]

View File

@ -71,7 +71,7 @@ parser.add_argument(
) )
def cli(): def run():
args = parser.parse_args() args = parser.parse_args()
gen_strings = aggregated.aggregate_sequences(args.fastas, args.abifs) gen_strings = aggregated.aggregate_sequences(args.fastas, args.abifs)
os.makedirs(args.out, exist_ok=True) os.makedirs(args.out, exist_ok=True)
@ -83,4 +83,4 @@ def cli():
if __name__ == "__main__": if __name__ == "__main__":
cli() run()