Skip to content

Commit 0f0bc6a

Browse files
committed
different formatting
1 parent b09eba1 commit 0f0bc6a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

agentstack/cli/init.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ def require_uv():
3838
def select_template(slug_name: str, framework: Optional[str] = None) -> TemplateConfig:
3939
"""Let the user select a template from the ones available."""
4040
templates: list[TemplateConfig] = get_all_templates()
41-
template_names = [shorten(f"{t.name} - {t.description}", 80) for t in templates]
41+
template_names = [shorten(f"⚡️ {t.name} - {t.description}", 80) for t in templates]
4242

43-
empty_msg = "Start with an empty project"
43+
empty_msg = "🆕 Empty Project"
4444
template_choice = inquirer.list_input(
45-
message="Which template would you like to use?",
45+
message="Do you want to start with a template?",
4646
choices=[empty_msg] + template_names,
4747
)
48-
template_name = template_choice.split(" - ")[0]
48+
template_name = template_choice.split("⚡️ ")[1].split(" - ")[0]
4949

5050
if template_name == empty_msg:
5151
return TemplateConfig(
@@ -87,6 +87,8 @@ def init_project(
8787
if template and use_wizard:
8888
raise Exception("Template and wizard flags cannot be used together")
8989

90+
welcome_message()
91+
9092
if use_wizard:
9193
log.debug("Initializing new project with wizard.")
9294
template_data = run_wizard(slug_name)
@@ -97,7 +99,6 @@ def init_project(
9799
log.debug("Initializing new project with template selection.")
98100
template_data = select_template(slug_name, framework)
99101

100-
welcome_message()
101102
log.notify("🦾 Creating a new AgentStack project...")
102103
log.info(f"Using project directory: {conf.PATH.absolute()}")
103104

0 commit comments

Comments
 (0)