start cli
All checks were successful
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Successful in -42s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been skipped

This commit is contained in:
Brendan Haines 2024-12-19 00:25:47 -07:00
parent 76886011bb
commit 5650e7b03b
2 changed files with 27 additions and 1 deletions

26
charon_vna/cli.py Normal file
View File

@ -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()

View File

@ -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]