From 5650e7b03bbe424689b1d21eb6a259ddb01d8f9b Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Thu, 19 Dec 2024 00:25:47 -0700 Subject: [PATCH] start cli --- charon_vna/cli.py | 26 ++++++++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 charon_vna/cli.py diff --git a/charon_vna/cli.py b/charon_vna/cli.py new file mode 100644 index 0000000..5b49c92 --- /dev/null +++ b/charon_vna/cli.py @@ -0,0 +1,26 @@ +# %% imports +from pathlib import Path + +import click + +# from charon_vna.vna import Charon + + +@click.command() +@click.argument("start", type=float) +@click.argument("stop", type=float) +@click.argument("pts", type=int) +@click.option("--ports", "-n", type=int, default=1, help="Number of ports.") +@click.option("--power", "-p", type=float, default=-5, help="Port output power [dBm].") +@click.option("--snp", "-o", type=click.Path(), help="Path for output Touchstone file.") +def capture(start: float, stop: float, pts: int, power: float, snp: Path, ports: int): + pass + + +# %% +def main(): + capture() + + +if __name__ == "__main__": + main() diff --git a/pyproject.toml b/pyproject.toml index 5d3043c..f454e9e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ dynamic = ["version"] homepage = "https://git.brendanhaines.com/brendanhaines/charon" [project.scripts] -# charon-cli = "charon_vna.cli:main" +charon-cli = "charon_vna.cli:main" charon-gui = "charon_vna.gui:main" [tool.setuptools_scm]