Skip to content

Commit a227e3d

Browse files
authored
make changes in py, ts, ruby to support baml as an alias to baml-cli (#2182)
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add 'baml' as an alias to 'baml-cli' in Python, Ruby, and TypeScript configurations for CLI invocation. > > - **Behavior**: > - Add `baml` as an alias to `baml-cli` in `pyproject.toml`, `baml.gemspec`, and `package.json`. > - Allows invoking the CLI using `baml` command in Python, Ruby, and TypeScript environments. > > <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 87e5e7f. 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 e478a55 commit a227e3d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

engine/language_client_python/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ features = ["pyo3/extension-module", "pyo3/generate-import-lib"]
2121

2222
[project.scripts]
2323
baml-cli = "baml_py:invoke_runtime_cli"
24+
baml = "baml_py:invoke_runtime_cli"
2425

2526
# NOTE: dependencies is _deliberately_ empty so that different flavors of BAML
2627
# don't have to share dependencies, e.g. we currently generate python/pydantic

engine/language_client_ruby/baml.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
1717
spec.files = Dir["exe/*", "lib/**/*.rb", "ext/**/*.{rs,toml,lock,rb}"]
1818
spec.bindir = "exe"
1919
# TODO: make sure this is invoke-able from an installed gem
20-
spec.executables = ["baml-cli"]
20+
spec.executables = ["baml-cli", "baml"]
2121
spec.require_paths = ["lib"]
2222
spec.extensions = ["ext/ruby_ffi/extconf.rb"]
2323

engine/language_client_typescript/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"node-addon-api"
1818
],
1919
"bin": {
20-
"baml-cli": "cli.js"
20+
"baml-cli": "cli.js",
21+
"baml": "cli.js"
2122
},
2223
"files": [
2324
"./cli.js",

0 commit comments

Comments
 (0)