Commit 083ccb7
authored
doc fixes + propogate errors for baml-cli (#2124)
<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Enhance CLI error handling and update BAML documentation for Ruby and
TypeScript with improved examples and structure.
>
> - **CLI Error Handling**:
> - Propagate errors in `commands.rs` for `Generate`, `Init`, `Serve`,
`Dev`, `Auth`, `Login`, `Deploy` commands by printing error messages to
stderr.
> - **Protobuf Changes**:
> - Update `cffi.pb.go` to include `sizeCache` and `unknownFields` in
`CFFIValueHolder`, `CFFIFieldTypeChecked`, and `CFFICollector`.
> - Conditional `protoimpl.UnsafeEnabled` checks added for message state
handling in `CFFIValueChecked` and `CFFICollector`.
> - **Documentation Updates**:
> - Replace `<CodeBlocks>` with `<Tabs>` in `ruby.mdx` and
`typescript.mdx` for better code example organization.
> - Add streaming examples for Ruby and TypeScript in `ruby.mdx` and
`typescript.mdx`.
> - Update `checks-and-asserts.mdx` to include detailed examples of
`@assert` and `@check` usage.
> - Add examples for async and sync client usage in `client.mdx`.
>
> <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 77c0ea1. 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 6b7c178 commit 083ccb7
11 files changed
Lines changed: 2012 additions & 1020 deletions
File tree
- engine
- cli/src
- language_client_codegen/src
- language_client_go/pkg/cffi
- language_client_python/python_src/baml_py
- fern
- 01-guide
- 02-languages
- 05-baml-advanced
- 03-reference/baml_client
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
68 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
74 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
75 | 84 | | |
76 | 85 | | |
77 | 86 | | |
78 | 87 | | |
79 | 88 | | |
80 | 89 | | |
81 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
82 | 94 | | |
83 | 95 | | |
84 | 96 | | |
85 | 97 | | |
86 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
87 | 102 | | |
88 | 103 | | |
89 | 104 | | |
90 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
91 | 109 | | |
92 | 110 | | |
93 | 111 | | |
94 | 112 | | |
95 | 113 | | |
96 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
97 | 118 | | |
98 | 119 | | |
99 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments