From 8974c249680e9941c77f812963c02cc1bd96e344 Mon Sep 17 00:00:00 2001 From: Marek Fiala Date: Tue, 14 Jul 2026 17:24:30 +0200 Subject: [PATCH] feat(tools): idf.py --port autocompletion --- tools/idf_py_actions/serial_ext.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/idf_py_actions/serial_ext.py b/tools/idf_py_actions/serial_ext.py index b2382b4e019..47eb9f5f3d1 100644 --- a/tools/idf_py_actions/serial_ext.py +++ b/tools/idf_py_actions/serial_ext.py @@ -10,6 +10,8 @@ from typing import Any import rich_click as click from click.core import ParameterSource +from esp_pylib.cli_types import BaudRateType +from esp_pylib.cli_types import SerialPortType from esp_pylib.logger import log from rich_click import Context @@ -34,6 +36,7 @@ BAUD_RATE = { 'scope': 'global', 'envvar': 'ESPBAUD', 'default': 460800, + 'type': BaudRateType(), } PORT = { @@ -41,7 +44,7 @@ PORT = { 'help': 'Serial port.', 'scope': 'global', 'envvar': 'ESPPORT', - 'type': click.Path(), + 'type': SerialPortType(), 'default': None, }