Skip to content

Commit 4fa4c2e

Browse files
committed
Exception and moved toolkit_url
1 parent 079d263 commit 4fa4c2e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

devhub/commands/aikit.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ def aikit():
1414

1515

1616
@aikit.command()
17-
def init():
17+
def init(toolkit_url='https://github.com/devhub/devhub-cli-ai-toolkit/archive/refs/heads/main.zip'):
1818
"""Initialize AI toolkit by downloading and extracting toolkit files."""
1919

2020
working_dir = os.environ.get('WORKING_DIR', os.getcwd())
21-
toolkit_url = 'https://github.com/devhub/devhub-cli-ai-toolkit/archive/refs/heads/main.zip'
2221

2322
click.echo(f'Downloading AI toolkit... {toolkit_url}')
2423

@@ -76,7 +75,6 @@ def init():
7675
click.echo(f'Extracted {extracted_count} files, skipped {skipped_count} existing files.')
7776

7877
except Exception as e:
79-
raise
8078
click.echo(click.style(f'Error during AI toolkit initialization: {str(e)}', fg='red'))
8179
finally:
8280
# Clean up temporary file

0 commit comments

Comments
 (0)