feat(tools): Replaced click with rich_click

This commit is contained in:
Marek Fiala
2026-06-01 20:07:27 +08:00
committed by BOT
parent 2e2909506f
commit eb91e45092
15 changed files with 115 additions and 91 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ from collections.abc import Callable
from shutil import copyfile
from shutil import copytree
import click
from rich_click import Context
from idf_py_actions.tools import PropertyDict
@@ -106,7 +106,7 @@ def create_component(target_path: str, name: str) -> None:
def action_extensions(base_actions: dict, project_path: str) -> dict:
def create_new(action: str, ctx: click.core.Context, global_args: PropertyDict, **action_args: str) -> dict:
def create_new(action: str, ctx: Context, global_args: PropertyDict, **action_args: str) -> dict:
target_path = action_args.get('path') or os.path.join(project_path, action_args['name'])
is_empty_and_create(target_path, action)