add function to only show a single arg with the find cli #16

Merged
jkuhl merged 1 commit from fix/cli-find into master 2026-02-13 10:48:23 +01:00
Showing only changes of commit d6dde9bb11 - Show all commits

add function to only show a single arg with the find cli

Justus Kuhlmann 2026-02-13 10:46:29 +01:00
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -90,6 +90,11 @@ def find(
"--dataset",
"-d",
),
arg: str = typer.Option(
str('all'),
"--show",
"-s",
),
ensemble: str = typer.Argument(),
corr: str = typer.Argument(),
code: str = typer.Argument(),
@ -98,8 +103,12 @@ def find(
Find a record in the backlog at hand. Through specifying it's ensemble and the measured correlator.
"""
results = find_record(path, ensemble, corr, code)
print(results)
if arg == "all":
print(results)
else:
for i in range(len(results)):
print(results[arg].values[i])
return
@app.command()
def importer(