Skip to content

Commit 34a0428

Browse files
authored
cli: add IDE/terminal auto-detect from baml-cli init (#2178)
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add IDE/terminal auto-detection and extension installation to BAML CLI initialization with interactive UI feedback. > > - **Behavior**: > - Adds IDE/terminal auto-detection in `init.rs` to identify VSCode or Cursor and install the BAML extension. > - Updates `InitArgs::run()` to include steps for detecting and installing editor extensions. > - Introduces `InitUIContext` in `init_ui.rs` for interactive CLI feedback during initialization. > - **Dependencies**: > - Adds `ratatui` and `crossterm` to `Cargo.toml` for terminal UI support. > - **Misc**: > - Adds `baml.mdc` to `initial_project` for Cursor rules setup. > - Updates `Cargo.lock` with new dependencies and versions. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for 80b9b38. You can [customize](https://app.ellipsis.dev/BoundaryML/settings/summaries) this summary. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
1 parent c62cf63 commit 34a0428

7 files changed

Lines changed: 1317 additions & 40 deletions

File tree

‎engine/Cargo.lock‎

Lines changed: 160 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎engine/baml-runtime/Cargo.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ walkdir = "2.5.0"
189189
which = "6.0.3"
190190
indicatif = "0.17"
191191
junit-report = "0.8.3"
192+
ratatui = "0.29"
193+
crossterm = "0.28"
192194

193195

194196
[features]

0 commit comments

Comments
 (0)