mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(tools): Replaced click with rich_click
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user