Skip to content

Commit

Permalink
update code file
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijeetSaroha committed Oct 4, 2024
1 parent 906a86a commit f5fbd8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/makim/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def create_args_string(args: dict[str, str]) -> str:
')'
)

args_data = cast(Dict[str, dict[str, str]], args.get('args', {}))
args_data = cast(Dict[str, Dict[str, str]], args.get('args', {}))
for name, spec in args_data.items():
name_clean = name.replace('-', '_')
arg_type = normalize_string_type(spec.get('type', 'str'))
Expand Down Expand Up @@ -277,7 +277,7 @@ def create_dynamic_command(name: str, args: dict[str, str]) -> None:
args_str = create_args_string(args)
args_param_list = [f'"task": "{name}"']

args_data = cast(Dict[str, dict[str, str]], args.get('args', {}))
args_data = cast(Dict[str, Dict[str, str]], args.get('args', {}))

for arg, arg_details in args_data.items():
arg_clean = arg.replace('-', '_')
Expand Down Expand Up @@ -309,7 +309,7 @@ def create_dynamic_command(name: str, args: dict[str, str]) -> None:

# Apply Click options to the Typer command
if 'args' in args:
options_data = cast(Dict[str, dict[str, Any]], args.get('args', {}))
options_data = cast(Dict[str, Dict[str, Any]], args.get('args', {}))
dynamic_command = apply_click_options(dynamic_command, options_data)


Expand Down

0 comments on commit f5fbd8f

Please sign in to comment.