start cli
This commit is contained in:
parent
76886011bb
commit
5650e7b03b
26
charon_vna/cli.py
Normal file
26
charon_vna/cli.py
Normal 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()
|
|
@ -29,7 +29,7 @@ dynamic = ["version"]
|
||||||
homepage = "https://git.brendanhaines.com/brendanhaines/charon"
|
homepage = "https://git.brendanhaines.com/brendanhaines/charon"
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
# charon-cli = "charon_vna.cli:main"
|
charon-cli = "charon_vna.cli:main"
|
||||||
charon-gui = "charon_vna.gui:main"
|
charon-gui = "charon_vna.gui:main"
|
||||||
|
|
||||||
[tool.setuptools_scm]
|
[tool.setuptools_scm]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user