Skip to content

Commit 3e146b1

Browse files
author
László Vaskó
committed
feat: expose notes field on the CLI
The plumbing was already present in the client itself. Closes: #82
1 parent 51212f3 commit 3e146b1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎onekey_client/cli/firmware_upload.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
)
4444
@click.option("--monitoring", is_flag=True, default=False, help="Enable monitoring")
4545
@click.option("--label", multiple=True, help="Add a label (repeatable)")
46+
@click.option("--notes", help="Free-text notes for the firmware")
4647
@click.argument(
4748
"filename", type=click.Path(exists=True, path_type=Path), required=False
4849
)
@@ -58,6 +59,7 @@ def upload_firmware(
5859
version: str | None,
5960
name: str | None,
6061
label: tuple[str],
62+
notes: str | None,
6163
sbom: Path | None,
6264
filename: Path | None,
6365
):
@@ -87,6 +89,7 @@ def upload_firmware(
8789
version=version,
8890
analysis_configuration_id=analysis_configuration_id,
8991
labels=list(label),
92+
notes=notes,
9093
)
9194

9295
try:

0 commit comments

Comments
 (0)