Repository navigation
Commit 34a0428
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
- baml-runtime
- src
- cli
- initial_project
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
| |||
0 commit comments