Commit 20ad8e4
authored
Add output encoding options and bump version to 0.5.0 (#23)
## Summary
- add a global `--output-encoding` option with `utf8-no-bom`,
`utf8-bom`, and `utf8` values
- plumb output encoding through CLI query execution into file writes
while keeping the default behavior as UTF-8 without BOM
- bump cirup and packaging metadata to 0.5.0 and document the new option
## Details
- add `CliOutputEncoding` parsing and tests in `cirup_cli`
- add `OutputEncoding` support and BOM-aware byte generation in
`cirup_core::file`
- expose the core output encoding type and route interactive writes
through the new encoding-aware save path
- sync 0.5.0 across the Rust crates, NuGet packaging projects, sample
project, and e2e script
## Validation
- `cargo fmt --all --check`
- `cargo clippy --workspace --all-targets`
- `cargo test --workspace`
- manual smoke test of `file-convert` output bytes for RESX, JSON, and
RESTEXT with `utf8-no-bom` vs `utf8-bom`
## Notes
- `cargo clippy` completed successfully but emitted an environment-level
warning while finalizing an incremental compilation directory under
`target`1 parent a51432d commit 20ad8e4
16 files changed
Lines changed: 237 additions & 114 deletions
File tree
- cirup_cli
- src
- cirup_core
- src
- nuget
- samples/Devolutions.Cirup.Build.E2E
- tool
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
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 | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments