Skip to content

Commit b80f8ce

Browse files
committed
refactor: add type hints to CLI function and update parameter definitions
1 parent a17f233 commit b80f8ce

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

adf_core_python/cli/cli.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@
99
@click.option(
1010
"--name", prompt="Your agent team name", help="The name of your agent team"
1111
)
12-
def cli(name):
12+
def cli(name: str) -> None:
1313
# load template dir and create a new agent team
1414
click.echo(f"Creating a new agent team with name: {name}")
1515
# 自身がいるディレクトリを取得
1616
template_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)), "template")
17-
click.echo(f"Current file path: {template_dir}")
1817
# コマンドラインのカレントディレクトリを取得
1918
current_dir = os.getcwd()
20-
click.echo(f"Current directory: {current_dir}")
2119

2220
_copy_template(
2321
template_dir,
@@ -27,10 +25,10 @@ def cli(name):
2725

2826

2927
def _copy_template(
30-
src,
31-
dest,
32-
name,
33-
):
28+
src: str,
29+
dest: str,
30+
name: str,
31+
) -> None:
3432
if os.path.isdir(src):
3533
if not os.path.exists(dest):
3634
os.makedirs(dest)

0 commit comments

Comments
 (0)