# {py:mod}`haniwers.v1.cli.threshold`

```{py:module} haniwers.v1.cli.threshold
```

```{autodoc2-docstring} haniwers.v1.cli.threshold
:allowtitles:
```

## Module Contents

### Functions

````{list-table}
:class: autosummary longtable
:align: left

* - {py:obj}`write <haniwers.v1.cli.threshold.write>`
  - ```{autodoc2-docstring} haniwers.v1.cli.threshold.write
    :summary:
    ```
* - {py:obj}`serial <haniwers.v1.cli.threshold.serial>`
  - ```{autodoc2-docstring} haniwers.v1.cli.threshold.serial
    :summary:
    ```
````

### Data

````{list-table}
:class: autosummary longtable
:align: left

* - {py:obj}`app <haniwers.v1.cli.threshold.app>`
  - ```{autodoc2-docstring} haniwers.v1.cli.threshold.app
    :summary:
    ```
````

### API

````{py:data} app
:canonical: haniwers.v1.cli.threshold.app
:value: >
   'Typer(...)'

```{autodoc2-docstring} haniwers.v1.cli.threshold.app
```

````

````{py:function} write(ctx: typer.Context, config: typing.Optional[pathlib.Path] = ConfigOptions.config, port: typing.Optional[str] = DeviceOptions.port, baudrate: typing.Optional[int] = DeviceOptions.baudrate, timeout: typing.Optional[float] = DeviceOptions.timeout, device_label: typing.Optional[str] = DeviceOptions.device_label, thresholds: str = ThresholdOptions.thresholds, max_retry: int = ThresholdOptions.max_retry, history: pathlib.Path = ThresholdOptions.history, workspace: typing.Optional[pathlib.Path] = OutputOptions.workspace, filename_prefix: typing.Optional[str] = OutputOptions.filename_prefix, filename_suffix: typing.Optional[str] = OutputOptions.filename_suffix, events_per_file: typing.Optional[int] = OutputOptions.events_per_file, number_of_files: typing.Optional[int] = OutputOptions.number_of_files, stream_mode: bool = OutputOptions.stream_mode, mock: bool = TestingOptions.mock, verbose: bool = LoggerOptions.verbose, logfile: str = LoggerOptions.logfile) -> None
:canonical: haniwers.v1.cli.threshold.write

```{autodoc2-docstring} haniwers.v1.cli.threshold.write
```
````

````{py:function} serial(ctx: typer.Context, config: typing.Optional[pathlib.Path] = ConfigOptions.config, port: typing.Optional[str] = DeviceOptions.port, baudrate: typing.Optional[int] = DeviceOptions.baudrate, timeout: typing.Optional[float] = DeviceOptions.timeout, device_label: typing.Optional[str] = DeviceOptions.device_label, nsteps: int = ScanOptions.nsteps, step: int = ScanOptions.step, duration: float = ScanOptions.duration, thresholds: str = ThresholdOptions.thresholds, max_retry: int = ThresholdOptions.max_retry, history: pathlib.Path = ThresholdOptions.history, workspace: typing.Optional[pathlib.Path] = OutputOptions.workspace, mock: bool = TestingOptions.mock, verbose: bool = LoggerOptions.verbose, logfile: str = LoggerOptions.logfile) -> None
:canonical: haniwers.v1.cli.threshold.serial

```{autodoc2-docstring} haniwers.v1.cli.threshold.serial
```
````
