Skip to content

Commit

Permalink
exit on init failure
Browse files Browse the repository at this point in the history
  • Loading branch information
bboynton97 committed Dec 21, 2024
1 parent 4d5e9f7 commit 3e49d83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agentstack/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ def init_project_builder(
):
if not slug_name and not use_wizard:
print(term_color("Project name is required. Use `agentstack init <project_name>`", 'red'))
return
sys.exit(1)

if slug_name and not is_snake_case(slug_name):
print(term_color("Project name must be snake case", 'red'))
return
sys.exit(1)

if template is not None and use_wizard:
print(term_color("Template and wizard flags cannot be used together", 'red'))
return
sys.exit(1)

template_data = None
if template is not None:
Expand Down

0 comments on commit 3e49d83

Please sign in to comment.