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]