|
1 | 1 | """JavaScript/TypeScript project initialization for Codeflash.""" |
| 2 | + |
2 | 3 | # TODO:{claude} move to language support directory |
3 | 4 | from __future__ import annotations |
4 | 5 |
|
@@ -125,8 +126,7 @@ def init_js_project(language: ProjectLanguage) -> None: |
125 | 126 |
|
126 | 127 | lang_panel = Panel( |
127 | 128 | Text( |
128 | | - f"📦 Detected {lang_name} project!\n\n" |
129 | | - "I'll help you set up Codeflash for your project.", |
| 129 | + f"📦 Detected {lang_name} project!\n\nI'll help you set up Codeflash for your project.", |
130 | 130 | style="cyan", |
131 | 131 | justify="center", |
132 | 132 | ), |
@@ -159,13 +159,13 @@ def init_js_project(language: ProjectLanguage) -> None: |
159 | 159 | usage_table.add_column("Command", style="cyan") |
160 | 160 | usage_table.add_column("Description", style="white") |
161 | 161 |
|
162 | | - usage_table.add_row( |
163 | | - "codeflash --file <path-to-file> --function <function-name>", "Optimize a specific function" |
164 | | - ) |
| 162 | + usage_table.add_row("codeflash --file <path-to-file> --function <function-name>", "Optimize a specific function") |
165 | 163 | usage_table.add_row("codeflash --all", "Optimize all functions in all files") |
166 | 164 | usage_table.add_row("codeflash --help", "See all available options") |
167 | 165 |
|
168 | | - completion_message = f"⚡️ Codeflash is now set up for your {lang_name} project!\n\nYou can now run any of these commands:" |
| 166 | + completion_message = ( |
| 167 | + f"⚡️ Codeflash is now set up for your {lang_name} project!\n\nYou can now run any of these commands:" |
| 168 | + ) |
169 | 169 |
|
170 | 170 | if did_add_new_key: |
171 | 171 | completion_message += ( |
@@ -265,10 +265,7 @@ def collect_js_setup_info(language: ProjectLanguage) -> JSSetupInfo: |
265 | 265 | detection_table.add_row("Formatter", formatter_display) |
266 | 266 |
|
267 | 267 | detection_panel = Panel( |
268 | | - Group( |
269 | | - Text(f"Auto-detected settings for your {lang_name} project:\n", style="cyan"), |
270 | | - detection_table, |
271 | | - ), |
| 268 | + Group(Text(f"Auto-detected settings for your {lang_name} project:\n", style="cyan"), detection_table), |
272 | 269 | title="🔍 Auto-Detection Results", |
273 | 270 | border_style="bright_blue", |
274 | 271 | ) |
@@ -399,8 +396,7 @@ def _get_git_remote_for_setup() -> str: |
399 | 396 |
|
400 | 397 | git_panel = Panel( |
401 | 398 | Text( |
402 | | - "🔗 Configure Git Remote for Pull Requests.\n\n" |
403 | | - "Codeflash will use this remote to create pull requests.", |
| 399 | + "🔗 Configure Git Remote for Pull Requests.\n\nCodeflash will use this remote to create pull requests.", |
404 | 400 | style="blue", |
405 | 401 | ), |
406 | 402 | title="🔗 Git Remote Setup", |
|
0 commit comments